Browse Source

py/objdict: Reword TODO about inlining mp_obj_dict_get to a note.

pull/4191/merge
Damien George 6 years ago
parent
commit
814f17a3a4
  1. 2
      py/objdict.c

2
py/objdict.c

@ -160,7 +160,7 @@ STATIC mp_obj_t dict_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_
}
}
// TODO: Make sure this is inlined in dict_subscr() below.
// Note: Make sure this is inlined in load part of dict_subscr() below.
mp_obj_t mp_obj_dict_get(mp_obj_t self_in, mp_obj_t index) {
mp_obj_dict_t *self = MP_OBJ_TO_PTR(self_in);
mp_map_elem_t *elem = mp_map_lookup(&self->map, index, MP_MAP_LOOKUP);

Loading…
Cancel
Save