summaryrefslogtreecommitdiff
path: root/py/objset.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/objset.c
parenteee1e8841a852f374b83e0a3e3b0ff7b66e54243 (diff)
py: Downcase MP_xxx_SLOT_IS_FILLED inline functions.
Diffstat (limited to 'py/objset.c')
-rw-r--r--py/objset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objset.c b/py/objset.c
index d58adb1ff..88e9d5cc6 100644
--- a/py/objset.c
+++ b/py/objset.c
@@ -85,7 +85,7 @@ STATIC void set_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t
#endif
mp_print_str(print, "{");
for (size_t i = 0; i < self->set.alloc; i++) {
- if (MP_SET_SLOT_IS_FILLED(&self->set, i)) {
+ if (mp_set_slot_is_filled(&self->set, i)) {
if (!first) {
mp_print_str(print, ", ");
}
@@ -135,7 +135,7 @@ STATIC mp_obj_t set_it_iternext(mp_obj_t self_in) {
mp_set_t *set = &self->set->set;
for (size_t i = self->cur; i < max; i++) {
- if (MP_SET_SLOT_IS_FILLED(set, i)) {
+ if (mp_set_slot_is_filled(set, i)) {
self->cur = i + 1;
return set->table[i];
}
@@ -441,7 +441,7 @@ STATIC mp_obj_t set_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
mp_set_t *set = &self->set;
for (size_t i = 0; i < max; i++) {
- if (MP_SET_SLOT_IS_FILLED(set, i)) {
+ if (mp_set_slot_is_filled(set, i)) {
hash += MP_OBJ_SMALL_INT_VALUE(mp_unary_op(MP_UNARY_OP_HASH, set->table[i]));
}
}