diff options
Diffstat (limited to 'py/vm.c')
-rw-r--r-- | py/vm.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -476,7 +476,12 @@ bool mp_execute_byte_code_2(const byte *code_info, const byte **ip_in_out, mp_ob case MP_BC_MAKE_FUNCTION: DECODE_UINT; - PUSH(rt_make_function_from_id(unum)); + PUSH(rt_make_function_from_id(unum, MP_OBJ_NULL)); + break; + + case MP_BC_MAKE_FUNCTION_DEFARGS: + DECODE_UINT; + SET_TOP(rt_make_function_from_id(unum, TOP())); break; case MP_BC_MAKE_CLOSURE: |