Fix constant fold error
This commit is contained in:
parent
ab06d85a91
commit
1b22a5e3c5
|
@ -647,7 +647,7 @@ Expression* Expression::ConstantFold(Errors * errors, LinkerSection * dataSectio
|
||||||
ex->mDecType = mDecType;
|
ex->mDecType = mDecType;
|
||||||
return ex;
|
return ex;
|
||||||
}
|
}
|
||||||
return mLeft;
|
return this;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else if (mType == EX_TYPECAST && mLeft->mType == EX_CONSTANT)
|
else if (mType == EX_TYPECAST && mLeft->mType == EX_CONSTANT)
|
||||||
|
|
Loading…
Reference in New Issue