Browse Source

Fixed unknown-sized array case in BfInvocationExpression

Brian Fiete 4 months ago
parent
commit
19820cc44a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      IDEHelper/Compiler/BfExprEvaluator.cpp

+ 1 - 1
IDEHelper/Compiler/BfExprEvaluator.cpp

@@ -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]);
 					}
 				}