mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Fixed processing error of sized array with size containing local variables
This commit is contained in:
parent
cb6f88b047
commit
06d896330d
1 changed files with 17 additions and 10 deletions
|
@ -6372,6 +6372,12 @@ void BfExprEvaluator::FinishDeferredEvals(BfResolvedArgs& argValues)
|
|||
{
|
||||
auto variableDeclaration = BfNodeDynCast<BfVariableDeclaration>((*argValues.mArguments)[argIdx]);
|
||||
if ((variableDeclaration != NULL) && (variableDeclaration->mNameNode != NULL))
|
||||
{
|
||||
if (mModule->mCurMethodState == NULL)
|
||||
{
|
||||
mModule->Fail("Illegal local variable", variableDeclaration);
|
||||
}
|
||||
else
|
||||
{
|
||||
BfLocalVariable* localVar = new BfLocalVariable();
|
||||
localVar->mName = variableDeclaration->mNameNode->ToString();
|
||||
|
@ -6386,6 +6392,7 @@ void BfExprEvaluator::FinishDeferredEvals(BfResolvedArgs& argValues)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FinishDeferredEvals(argValues.mResolvedArgs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue