Skip to content

Commit

Permalink
Merge pull request #1200 from sogaiu/use-vm_commit
Browse files Browse the repository at this point in the history
Use vm_commit
  • Loading branch information
bakpakin authored Jun 23, 2023
2 parents 3a4d56a + 78eed9b commit c3f4dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ static JanetSignal run_vm(JanetFiber *fiber, Janet in) {
if (func->gc.flags & JANET_FUNCFLAG_TRACE) {
vm_do_trace(func, fiber->stacktop - fiber->stackstart, fiber->data + fiber->stackstart);
}
janet_stack_frame(stack)->pc = pc;
vm_commit();
if (janet_fiber_funcframe(fiber, func)) {
int32_t n = fiber->stacktop - fiber->stackstart;
janet_panicf("%v called with %d argument%s, expected %d",
Expand Down

0 comments on commit c3f4dc0

Please sign in to comment.