mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
py: Fix MICROPY_STACKLESS mode to compile with MICROPY_OBJ_REPR_D.
This commit is contained in:
2
py/vm.c
2
py/vm.c
@@ -973,7 +973,7 @@ unwind_jump:;
|
||||
|
||||
mp_uint_t n_args = unum & 0xff;
|
||||
mp_uint_t n_kw = (unum >> 8) & 0xff;
|
||||
int adjust = (sp[1] == NULL) ? 0 : 1;
|
||||
int adjust = (sp[1] == MP_OBJ_NULL) ? 0 : 1;
|
||||
|
||||
mp_code_state *new_state = mp_obj_fun_bc_prepare_codestate(*sp, n_args + adjust, n_kw, sp + 2 - adjust);
|
||||
if (new_state) {
|
||||
|
||||
Reference in New Issue
Block a user