From 38a2da68c2e02b8fc5ae308ca9e3b667f8a0aedc Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 8 Jan 2014 17:33:12 +0000 Subject: py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t. --- py/objclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objclass.c') diff --git a/py/objclass.c b/py/objclass.c index d13d1775a..3ecce5473 100644 --- a/py/objclass.c +++ b/py/objclass.c @@ -26,7 +26,7 @@ mp_obj_t class_call_n(mp_obj_t self_in, int n_args, const mp_obj_t *args) { mp_obj_t o = mp_obj_new_instance(self_in); // look for __init__ function - mp_map_elem_t *init_fn = mp_qstr_map_lookup(self->locals, MP_QSTR___init__, false); + mp_map_elem_t *init_fn = mp_map_lookup(self->locals, MP_OBJ_NEW_QSTR(MP_QSTR___init__), MP_MAP_LOOKUP); if (init_fn != NULL) { // call __init__ function -- cgit v1.2.3