Skip to content

Commit 5efd650

Browse files
committed
unix/moduselect: Fix nanbox build with recent changes.
1 parent 093a8f5 commit 5efd650

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

unix/moduselect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ STATIC mp_obj_t poll_unregister(mp_obj_t self_in, mp_obj_t obj_in) {
134134
if (entries->fd == fd) {
135135
entries->fd = -1;
136136
if (self->obj_map) {
137-
self->obj_map[entries - self->entries] = NULL;
137+
self->obj_map[entries - self->entries] = MP_OBJ_NULL;
138138
}
139139
break;
140140
}
@@ -197,7 +197,7 @@ STATIC mp_obj_t poll_poll(size_t n_args, const mp_obj_t *args) {
197197
if (entries->revents != 0) {
198198
mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(2, NULL));
199199
// If there's an object stored, return it, otherwise raw fd
200-
if (self->obj_map && self->obj_map[i] != NULL) {
200+
if (self->obj_map && self->obj_map[i] != MP_OBJ_NULL) {
201201
t->items[0] = self->obj_map[i];
202202
} else {
203203
t->items[0] = MP_OBJ_NEW_SMALL_INT(entries->fd);

0 commit comments

Comments
 (0)