Skip to content

Commit 09a4d83

Browse files
committed
py: Fix bug in DELETE_SUBSCR bytecode, decreasing sp too much.
1 parent b6ec51b commit 09a4d83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ mp_vm_return_kind_t mp_execute_byte_code_2(const byte *code_info, const byte **i
326326

327327
case MP_BC_DELETE_SUBSCR:
328328
mp_delete_subscr(sp[-1], sp[0]);
329-
sp -= 3;
329+
sp -= 2;
330330
break;
331331

332332
case MP_BC_DUP_TOP:

0 commit comments

Comments
 (0)