I am pretty sure we want to use the number of elements in array in this place, not the actual size of array.
The build was successful. Details

The size of a structure is greater than the sum of its parts because of what is called packing. A particular processor has a preferred data size that it works with. Most modern processors' preferred size if 32-bits (4 bytes).
This commit is contained in:
Piotr Likoski 2019-07-12 14:36:56 +02:00
parent 33b0f20573
commit 843c2d67d9
Signed by: likoski
GPG Key ID: D9556DDD74910B18
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ static sxi32 ExprVerifyNodes(ph7_gen_state *pGen, ph7_expr_node **apNode, sxi32
apNode[i]->pStart->nType &= ~PH7_TK_OCB /*'{'*/; apNode[i]->pStart->nType &= ~PH7_TK_OCB /*'{'*/;
apNode[i]->pStart->nType |= PH7_TK_OSB /*'['*/; apNode[i]->pStart->nType |= PH7_TK_OSB /*'['*/;
pOp = aOpTable; pOp = aOpTable;
pEnd = &pOp[sizeof(aOpTable)]; pEnd = &pOp[sizeof(aOpTable) / sizeof(ph7_expr_op)];
while(pOp < pEnd) { while(pOp < pEnd) {
if(pOp->iOp == EXPR_OP_SUBSCRIPT) { if(pOp->iOp == EXPR_OP_SUBSCRIPT) {
break; break;