CALL instructions need to offset the st++ too

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-16 16:38:57 +02:00
parent 32c095b622
commit 84bc8f3662

View file

@ -312,7 +312,7 @@ while (1) {
builtinnumber, prog->filename);
}
else
st = prog->code + prog_enterfunction(prog, newf);
st = prog->code + prog_enterfunction(prog, newf) - 1; /* offset st++ */
if (prog->vmerror)
goto cleanup;
break;