Fix null instruction dereference when compiling comma expressions
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user