From 7a30e87d2b8c14dadf5021a03740c4ca48178f53 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 17 Dec 2015 12:32:41 +0000 Subject: py: Fix MICROPY_STACKLESS mode to compile with MICROPY_OBJ_REPR_D. --- py/objfun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objfun.c') diff --git a/py/objfun.c b/py/objfun.c index 88e84ce9fc..4c1b7211d1 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -167,7 +167,7 @@ STATIC void dump_args(const mp_obj_t *a, mp_uint_t sz) { #if MICROPY_STACKLESS mp_code_state *mp_obj_fun_bc_prepare_codestate(mp_obj_t self_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { MP_STACK_CHECK(); - mp_obj_fun_bc_t *self = self_in; + mp_obj_fun_bc_t *self = MP_OBJ_TO_PTR(self_in); // get start of bytecode const byte *ip = self->bytecode; -- cgit v1.2.3