summaryrefslogtreecommitdiff
path: root/py/objarray.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-11-27 13:38:15 +0000
committerDamien George <damien.p.george@gmail.com>2015-11-29 14:25:04 +0000
commitcbf7674025814797f5c537d6d1c195efe58ccaaf (patch)
tree7c1e5d7956d3766dad4c194ab00024e2a954bcf9 /py/objarray.c
parent94fe6e523d42ecc342c1f6a9734ed2edf232ddbd (diff)
py: Add MP_ROM_* macros and mp_rom_* types and use them.
Diffstat (limited to 'py/objarray.c')
-rw-r--r--py/objarray.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objarray.c b/py/objarray.c
index 67bb7931e..d65bb61fa 100644
--- a/py/objarray.c
+++ b/py/objarray.c
@@ -495,9 +495,9 @@ STATIC mp_int_t array_get_buffer(mp_obj_t o_in, mp_buffer_info_t *bufinfo, mp_ui
}
#if MICROPY_PY_BUILTINS_BYTEARRAY || MICROPY_PY_ARRAY
-STATIC const mp_map_elem_t array_locals_dict_table[] = {
- { MP_OBJ_NEW_QSTR(MP_QSTR_append), (mp_obj_t)&array_append_obj },
- { MP_OBJ_NEW_QSTR(MP_QSTR_extend), (mp_obj_t)&array_extend_obj },
+STATIC const mp_rom_map_elem_t array_locals_dict_table[] = {
+ { MP_ROM_QSTR(MP_QSTR_append), MP_ROM_PTR(&array_append_obj) },
+ { MP_ROM_QSTR(MP_QSTR_extend), MP_ROM_PTR(&array_extend_obj) },
};
STATIC MP_DEFINE_CONST_DICT(array_locals_dict, array_locals_dict_table);