aboutsummaryrefslogtreecommitdiff
path: root/py/objsingleton.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objsingleton.c')
-rw-r--r--py/objsingleton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objsingleton.c b/py/objsingleton.c
index 23a5cd4d6..394c12767 100644
--- a/py/objsingleton.c
+++ b/py/objsingleton.c
@@ -41,7 +41,7 @@ typedef struct _mp_obj_singleton_t {
STATIC void singleton_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
(void)kind;
- mp_obj_singleton_t *self = self_in;
+ mp_obj_singleton_t *self = MP_OBJ_TO_PTR(self_in);
mp_printf(print, "%q", self->name);
}