fixed another stack error

This commit is contained in:
2020-11-12 16:23:56 -06:00
parent 65662e94f2
commit 93130ede65
2 changed files with 2 additions and 2 deletions

View File

@@ -171,7 +171,7 @@ COSMOVMRESULT cosmoV_call(CState *state, int args) {
// execute
if (!cosmoV_execute(state))
return COSMOVM_RUNTIME_ERR;
CValue* result = state->top;
CValue* result = state->top - 1;
// pop the callframe and return result
popCallFrame(state);