summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtinhelp.c
diff options
context:
space:
mode:
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 94f8beaff2..93d94a389d 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) {