Fix dynamic variable initalizer
This commit is contained in:
parent
66dfe5df46
commit
ec95f6dc98
|
@ -22877,7 +22877,7 @@ void InterCodeProcedure::Close(void)
|
|||
{
|
||||
GrowingTypeArray tstack(IT_NONE);
|
||||
|
||||
CheckFunc = !strcmp(mIdent->mString, "bar");
|
||||
CheckFunc = !strcmp(mIdent->mString, "foo");
|
||||
CheckCase = false;
|
||||
|
||||
mEntryBlock = mBlocks[0];
|
||||
|
|
|
@ -6293,7 +6293,10 @@ Expression* Parser::ParseCastExpression(Expression* exp)
|
|||
else
|
||||
{
|
||||
Expression* cexp = new Expression(mScanner->mLocation, EX_CONSTRUCT);
|
||||
cexp->mLeft = iexp;
|
||||
Expression* lexp = new Expression(mScanner->mLocation, EX_LIST);
|
||||
lexp->mLeft = iexp;
|
||||
lexp->mRight = nullptr;
|
||||
cexp->mLeft = lexp;
|
||||
cexp->mRight = nexp;
|
||||
cexp->mDecType = vdec->mBase;
|
||||
|
||||
|
|
Loading…
Reference in New Issue