1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00
This commit is contained in:
Brian Fiete 2019-09-19 06:35:41 -07:00
parent d21954bac9
commit db1e7dfd71

View file

@ -10330,7 +10330,7 @@ void BfExprEvaluator::Visit(BfObjectCreateExpression* objCreateExpr)
dimLength = mModule->CreateValueFromExpression(expr, intType, BfEvalExprFlags_NoCast); dimLength = mModule->CreateValueFromExpression(expr, intType, BfEvalExprFlags_NoCast);
BfCastFlags castFlags = BfCastFlags_None; BfCastFlags castFlags = BfCastFlags_None;
if (dimLength.mType->IsInteger()) if ((dimLength) && (dimLength.mType->IsInteger()))
{ {
// Allow uint for size - just force to int // Allow uint for size - just force to int
if (!((BfPrimitiveType*)dimLength.mType)->IsSigned()) if (!((BfPrimitiveType*)dimLength.mType)->IsSigned())