summaryrefslogtreecommitdiff
path: root/py/objtuple.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/objtuple.c
parent94fe6e523d42ecc342c1f6a9734ed2edf232ddbd (diff)
py: Add MP_ROM_* macros and mp_rom_* types and use them.
Diffstat (limited to 'py/objtuple.c')
-rw-r--r--py/objtuple.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objtuple.c b/py/objtuple.c
index 305f273c6..1734721d7 100644
--- a/py/objtuple.c
+++ b/py/objtuple.c
@@ -215,9 +215,9 @@ STATIC mp_obj_t tuple_index(mp_uint_t n_args, const mp_obj_t *args) {
}
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(tuple_index_obj, 2, 4, tuple_index);
-STATIC const mp_map_elem_t tuple_locals_dict_table[] = {
- { MP_OBJ_NEW_QSTR(MP_QSTR_count), (mp_obj_t)&tuple_count_obj },
- { MP_OBJ_NEW_QSTR(MP_QSTR_index), (mp_obj_t)&tuple_index_obj },
+STATIC const mp_rom_map_elem_t tuple_locals_dict_table[] = {
+ { MP_ROM_QSTR(MP_QSTR_count), MP_ROM_PTR(&tuple_count_obj) },
+ { MP_ROM_QSTR(MP_QSTR_index), MP_ROM_PTR(&tuple_index_obj) },
};
STATIC MP_DEFINE_CONST_DICT(tuple_locals_dict, tuple_locals_dict_table);