1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed unknown-sized array case in BfInvocationExpression

This commit is contained in:
Brian Fiete 2025-05-11 14:58:38 +02:00
parent cd038089a7
commit 19820cc44a

View file

@ -19701,7 +19701,7 @@ void BfExprEvaluator::DoInvocation(BfInvocationExpression* invocationExpr)
{
arrSize = constant->mInt32;
}
else
else if (constant->mConstType != BfConstType_Undef)
mModule->Fail("Non-negative integer expected", indexerExpr->mArguments[0]);
}
}