Skip to content

Commit cf5b6f6

Browse files
committed
objfun: Fix to stackless mode after recent refactor.
1 parent 8c1d23a commit cf5b6f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/objfun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ mp_code_state *mp_obj_fun_bc_prepare_codestate(mp_obj_t self_in, mp_uint_t n_arg
179179

180180
code_state->n_state = n_state;
181181
code_state->code_info = 0; // offset to code-info
182-
code_state->ip = ip - self->bytecode; // offset to prelude
182+
code_state->ip = (byte*)(ip - self->bytecode); // offset to prelude
183183
mp_setup_code_state(code_state, self_in, n_args, n_kw, args);
184184

185185
// execute the byte code with the correct globals context

0 commit comments

Comments
 (0)