Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
43cab7c2
Commit
43cab7c2
authored
Jan 04, 2016
by
Damien George
Browse files
py/modbuiltins: Fix access of mp_obj_t variable, wrap in MP_OBJ_TO_PTR.
parent
d4df8f49
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/modbuiltins.c
View file @
43cab7c2
...
...
@@ -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
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment