Fix dynamic variable initalizer

This commit is contained in:
drmortalwombat 2024-10-06 13:59:06 +02:00
parent 66dfe5df46
commit ec95f6dc98
2 changed files with 5 additions and 2 deletions

View File

@ -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];

View File

@ -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;