Skip to content

Commit 8c03bf0

Browse files
committed
feat: Implement the core virtual machine for bytecode interpretation with stack operations, runtime error handling, and opcode dispatch.
1 parent 67189b2 commit 8c03bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ static InterpretResult run(VM *vm) {
292292
runtimeError(vm, "Stack overflow.");
293293
return INTERPRET_RUNTIME_ERROR;
294294
}
295-
CallFrame* frame = &vm->frames[vm->frameCount++];
295+
frame = &vm->frames[vm->frameCount++];
296296
frame->closure = closure;
297297
frame->ip = closure->function->chunk.code;
298298
frame->slots = vm->stackTop - argCount - 1;

0 commit comments

Comments
 (0)