Explorar o código

Fixed unknown-sized array case in BfInvocationExpression

Brian Fiete hai 4 meses
pai
achega
19820cc44a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 							arrSize = constant->mInt32;
 						}
 						}
-						else
+						else if (constant->mConstType != BfConstType_Undef)
 							mModule->Fail("Non-negative integer expected", indexerExpr->mArguments[0]);
 							mModule->Fail("Non-negative integer expected", indexerExpr->mArguments[0]);
 					}
 					}
 				}
 				}