diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-08 17:33:12 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-08 17:33:12 +0000 |
commit | 38a2da68c2e02b8fc5ae308ca9e3b667f8a0aedc (patch) | |
tree | 8bf705c9aff2013e1949e5edd803893113d385d3 /py/objclass.c | |
parent | ea9e441a75d7ea6633b0ea95b21667c48a6f7b6a (diff) | |
download | micropython-38a2da68c2e02b8fc5ae308ca9e3b667f8a0aedc.tar.gz micropython-38a2da68c2e02b8fc5ae308ca9e3b667f8a0aedc.zip |
py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t.
Diffstat (limited to 'py/objclass.c')
-rw-r--r-- | py/objclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objclass.c b/py/objclass.c index d13d1775a4..3ecce54739 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 |