Fix another potential case of writing to the wrong stack

This commit is contained in:
K. Lange 2024-02-15 17:54:50 +09:00
parent d920ff7f54
commit 2c0ab9a3e9

View File

@ -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;