Skip to content

Commit

Permalink
py/modbuiltins: Fix access of mp_obj_t variable, wrap in MP_OBJ_TO_PTR.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Jan 4, 2016
1 parent d4df8f4 commit 43cab7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/modbuiltins.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 43cab7c

Please sign in to comment.