Skip to content

Commit

Permalink
Fix another potential case of writing to the wrong stack
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Feb 15, 2024
1 parent d920ff7 commit 2c0ab9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2263,7 +2263,7 @@ _finishReturn: (void)0;
case OP_TRUE: krk_push(BOOLEAN_VAL(1)); break;
case OP_FALSE: krk_push(BOOLEAN_VAL(0)); break;
case OP_UNSET: krk_push(KWARGS_VAL(0)); break;
case OP_NOT: krk_currentThread.stackTop[-1] = BOOLEAN_VAL(krk_isFalsey(krk_peek(0))); break;
case OP_NOT: krk_push(BOOLEAN_VAL(krk_isFalsey(krk_peek(0)))); /* fallthrough */
case OP_SWAP_POP: krk_swap(1); /* fallthrough */
case OP_POP: krk_pop(); break;

Expand Down

0 comments on commit 2c0ab9a

Please sign in to comment.