summaryrefslogtreecommitdiffstatshomepage
path: root/unix/moduselect.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-12-31 11:19:25 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-12-31 11:19:25 +0300
commit5efd6508ecb64e57d71845e265d7cead72496efe (patch)
treef7328d142853bc11dfda0e4880a22546edb19452 /unix/moduselect.c
parent093a8f5fa2ff89959d8300032a837060827ac084 (diff)
downloadmicropython-5efd6508ecb64e57d71845e265d7cead72496efe.tar.gz
micropython-5efd6508ecb64e57d71845e265d7cead72496efe.zip
unix/moduselect: Fix nanbox build with recent changes.
Diffstat (limited to 'unix/moduselect.c')
-rw-r--r--unix/moduselect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/moduselect.c b/unix/moduselect.c
index a17d48f8c1..e74c44be66 100644
--- a/unix/moduselect.c
+++ b/unix/moduselect.c
@@ -134,7 +134,7 @@ STATIC mp_obj_t poll_unregister(mp_obj_t self_in, mp_obj_t obj_in) {
if (entries->fd == fd) {
entries->fd = -1;
if (self->obj_map) {
- self->obj_map[entries - self->entries] = NULL;
+ self->obj_map[entries - self->entries] = MP_OBJ_NULL;
}
break;
}
@@ -197,7 +197,7 @@ STATIC mp_obj_t poll_poll(size_t n_args, const mp_obj_t *args) {
if (entries->revents != 0) {
mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(2, NULL));
// If there's an object stored, return it, otherwise raw fd
- if (self->obj_map && self->obj_map[i] != NULL) {
+ if (self->obj_map && self->obj_map[i] != MP_OBJ_NULL) {
t->items[0] = self->obj_map[i];
} else {
t->items[0] = MP_OBJ_NEW_SMALL_INT(entries->fd);