From 0e26fc4125b77743582b510dd8e8055485a73122 Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Tue, 27 Oct 2026 08:05:51 +0100 Subject: [PATCH] Fix null instruction dereference when compiling comma expressions --- engine/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/compiler.c b/engine/compiler.c index b0c1763..16f5056 100644 --- a/engine/compiler.c +++ b/engine/compiler.c @@ -5001,7 +5001,7 @@ static sxi32 PH7_GenStateEmitExprCode( } } else if(pNode->pOp->iOp == EXPR_OP_COMMA) { /* POP the left node */ - PH7_VmEmitInstr(pGen->pVm, pInstr->iLine, PH7_OP_POP, 1, 0, 0, 0); + PH7_VmEmitInstr(pGen->pVm, pNode->pStart->nLine, PH7_OP_POP, 1, 0, 0, 0); } } rc = SXRET_OK;