Skip to content

Commit

Permalink
this is not reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
liz3 committed Nov 14, 2024
1 parent 9d73540 commit 285e4d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2491,7 +2491,7 @@ Value callFunction(DictuVM* vm, Value function, int argCount, Value* args) {
uint8_t code[4] = {OP_CALL, argCount, 0, OP_RETURN};
frame->ip = code;
push(vm, function);
for(int i = argCount -1; i >= 0; i--) {
for(int i = 0; i < argCount; i++) {
push(vm, args[i]);
}
DictuInterpretResult result = runWithBreakFrame(vm, currentFrameCount+1);
Expand Down

0 comments on commit 285e4d0

Please sign in to comment.