summaryrefslogtreecommitdiff
path: root/py/map.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-11-20 14:09:20 +0000
committerDamien George <damien.p.george@gmail.com>2015-11-20 14:09:20 +0000
commit83229d3ffe5f8b6ba9c9f90e4ff0185dc0bab81b (patch)
tree87841ba4ac7d38bc22b2e47ae707cf3be7beae95 /py/map.c
parent54df549b5fe6ff149ffbb0803b49f57c0de6d453 (diff)
py: Use MP_OBJ_NULL instead of NULL when appropriate.
Diffstat (limited to 'py/map.c')
-rw-r--r--py/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/map.c b/py/map.c
index 6864513c2..087f320c2 100644
--- a/py/map.c
+++ b/py/map.c
@@ -306,7 +306,7 @@ mp_obj_t mp_set_lookup(mp_set_t *set, mp_obj_t index, mp_map_lookup_kind_t looku
if (lookup_kind & MP_MAP_LOOKUP_ADD_IF_NOT_FOUND) {
mp_set_rehash(set);
} else {
- return NULL;
+ return MP_OBJ_NULL;
}
}
mp_uint_t hash = MP_OBJ_SMALL_INT_VALUE(mp_unary_op(MP_UNARY_OP_HASH, index));