From 72dc44c152736316f9d1c988c9adcce7821906e3 Mon Sep 17 00:00:00 2001 From: belliash Date: Fri, 5 Apr 2019 07:45:53 +0200 Subject: [PATCH] Another fix for OP_DONE instruction. --- engine/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/compiler.c b/engine/compiler.c index 25cac7e..5cf5ac5 100644 --- a/engine/compiler.c +++ b/engine/compiler.c @@ -5438,7 +5438,7 @@ static sxi32 PH7_CompileScript( rc = PH7_CompileExpr(pGen, 0, 0); } /* Emit the DONE instruction */ - PH7_VmEmitInstr(pGen->pVm, pGen->pIn->nLine, PH7_OP_DONE, (rc != SXERR_EMPTY ? 1 : 0), 0, 0, 0); + PH7_VmEmitInstr(pGen->pVm, pGen->pIn->nLine, PH7_OP_DONE, (rc != SXERR_EMPTY ? 1 : 0), 1, 0, 0); return SXRET_OK; } else if(iFlags & PH7_AERSCRIPT_CHNK) { /* Compile a chunk of code */