diff options
author | Damien George <damien.p.george@gmail.com> | 2015-11-20 14:09:20 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-11-20 14:09:20 +0000 |
commit | 83229d3ffe5f8b6ba9c9f90e4ff0185dc0bab81b (patch) | |
tree | 87841ba4ac7d38bc22b2e47ae707cf3be7beae95 /py/map.c | |
parent | 54df549b5fe6ff149ffbb0803b49f57c0de6d453 (diff) |
py: Use MP_OBJ_NULL instead of NULL when appropriate.
Diffstat (limited to 'py/map.c')
-rw-r--r-- | py/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |