Fix constant fold error

This commit is contained in:
drmortalwombat 2024-05-19 21:38:19 +02:00
parent ab06d85a91
commit 1b22a5e3c5

View File

@ -647,7 +647,7 @@ Expression* Expression::ConstantFold(Errors * errors, LinkerSection * dataSectio
ex->mDecType = mDecType;
return ex;
}
return mLeft;
return this;
}
#endif
else if (mType == EX_TYPECAST && mLeft->mType == EX_CONSTANT)