Commit 43cab7c2 authored by Damien George's avatar Damien George
Browse files

py/modbuiltins: Fix access of mp_obj_t variable, wrap in MP_OBJ_TO_PTR.

parent d4df8f49
......@@ -217,7 +217,7 @@ STATIC mp_obj_t mp_builtin_dir(mp_uint_t n_args, const mp_obj_t *args) {
}
}
if (mp_obj_is_instance_type(mp_obj_get_type(args[0]))) {
mp_obj_instance_t *inst = args[0];
mp_obj_instance_t *inst = MP_OBJ_TO_PTR(args[0]);
members = &inst->members;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment