From 9f6976b74e352d01bbfbb4b4d32465f9db5f3390 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 27 Nov 2015 12:50:54 +0000 Subject: py: Make mp_setup_code_state take concrete pointer for func arg. --- 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 a39508e2b..86dbe32e7 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -231,7 +231,7 @@ STATIC mp_obj_t fun_bc_call(mp_obj_t self_in, mp_uint_t n_args, mp_uint_t n_kw, code_state->ip = (byte*)(ip - self->bytecode); // offset to after n_state/n_exc_stack code_state->n_state = n_state; - mp_setup_code_state(code_state, self_in, n_args, n_kw, args); + mp_setup_code_state(code_state, self, n_args, n_kw, args); // execute the byte code with the correct globals context code_state->old_globals = mp_globals_get(); -- cgit v1.2.3