summaryrefslogtreecommitdiff
path: root/py/builtinhelp.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2021-07-14 17:14:16 +1000
committerDamien George <damien@micropython.org>2022-09-19 19:06:07 +1000
commita52cd5b07d6d6e2502fff2bbfb9e5b96562452a4 (patch)
treeabfbfe05586fe9c19d31adb32e82c59481ad611a /py/builtinhelp.c
parente8355eb16357b0bd234a9bcab1c9e8b72fcdbabc (diff)
py/obj: Add accessors for type slots and use everywhere.
This is a no-op, but sets the stage for changing the mp_obj_type_t representation. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'py/builtinhelp.c')
-rw-r--r--py/builtinhelp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/builtinhelp.c b/py/builtinhelp.c
index 94f8beaff..93d94a389 100644
--- a/py/builtinhelp.c
+++ b/py/builtinhelp.c
@@ -143,8 +143,8 @@ STATIC void mp_help_print_obj(const mp_obj_t obj) {
if (type == &mp_type_type) {
type = MP_OBJ_TO_PTR(obj);
}
- if (type->locals_dict != NULL) {
- map = &type->locals_dict->map;
+ if (MP_OBJ_TYPE_HAS_SLOT(type, locals_dict)) {
+ map = &MP_OBJ_TYPE_GET_SLOT(type, locals_dict)->map;
}
}
if (map != NULL) {