aboutsummaryrefslogtreecommitdiff
path: root/py/objdict.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-01-30 21:57:29 +1100
committerDamien George <damien.p.george@gmail.com>2019-02-12 14:54:51 +1100
commit054dd33ebad67f5c8f328036fd32c3871589a386 (patch)
tree7779aa9369ad4aa7c34850b60962bd505187bdf0 /py/objdict.c
parenteee1e8841a852f374b83e0a3e3b0ff7b66e54243 (diff)
py: Downcase MP_xxx_SLOT_IS_FILLED inline functions.
Diffstat (limited to 'py/objdict.c')
-rw-r--r--py/objdict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objdict.c b/py/objdict.c
index de300f998..015c2c72f 100644
--- a/py/objdict.c
+++ b/py/objdict.c
@@ -43,7 +43,7 @@ STATIC mp_map_elem_t *dict_iter_next(mp_obj_dict_t *dict, size_t *cur) {
mp_map_t *map = &dict->map;
for (size_t i = *cur; i < max; i++) {
- if (MP_MAP_SLOT_IS_FILLED(map, i)) {
+ if (mp_map_slot_is_filled(map, i)) {
*cur = i + 1;
return &(map->table[i]);
}
@@ -364,7 +364,7 @@ STATIC mp_obj_t dict_update(size_t n_args, const mp_obj_t *args, mp_map_t *kwarg
// update the dict with any keyword args
for (size_t i = 0; i < kwargs->alloc; i++) {
- if (MP_MAP_SLOT_IS_FILLED(kwargs, i)) {
+ if (mp_map_slot_is_filled(kwargs, i)) {
mp_map_lookup(&self->map, kwargs->table[i].key, MP_MAP_LOOKUP_ADD_IF_NOT_FOUND)->value = kwargs->table[i].value;
}
}