Fix OP_*_STORE precedence
All checks were successful
Build / AerScript (push) Successful in 39s

This commit is contained in:
Rafal Kupiec 2025-08-29 20:55:58 +02:00
parent c4023d62e1
commit 8ac9b148d1
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -4720,7 +4720,7 @@ static sxi32 PH7_GenStateEmitExprCode(
} else if(iVmOp == PH7_OP_LOR) {
/* Emit the true jump so we can short-circuit the logical or*/
PH7_VmEmitInstr(pGen->pVm, pGen->pIn->nLine, PH7_OP_JMPNZ, 1/* Keep the value on the stack */, 0, 0, &nJmpIdx);
} else if(pNode->pOp->iPrec == 18 /* Combined binary operators [i.e: =,'.=','+=',*=' ...] precedence */) {
} else if(pNode->pOp->iPrec == 20 /* Combined binary operators [i.e: =,'.=','+=',*=' ...] precedence */) {
iFlags |= EXPR_FLAG_LOAD_IDX_STORE;
}
rc = PH7_GenStateEmitExprCode(&(*pGen), pNode->pRight, iFlags);