1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +02:00

Fixed invalid cast for params

This commit is contained in:
Brian Fiete 2024-11-20 09:30:05 -05:00
parent 75a5a3695b
commit 28783a6b5a

View file

@ -305,7 +305,7 @@ bool BfConstResolver::PrepareMethodArguments(BfAstNode* targetSrc, BfMethodMatch
isDirectPass = true; isDirectPass = true;
} }
if (!isDirectPass) if ((!isDirectPass) && (wantType->IsArray()))
{ {
BfArrayType* arrayType = (BfArrayType*)wantType; BfArrayType* arrayType = (BfArrayType*)wantType;
if (arrayType->IsIncomplete()) if (arrayType->IsIncomplete())