Fix const void * type propagation

This commit is contained in:
drmortalwombat 2024-11-07 10:56:21 +01:00
parent 0a41cb044c
commit 2a476d3372

View File

@ -271,8 +271,8 @@ bool GlobalOptimizer::ReplaceGlobalConst(Expression* exp)
(cexp->mDecValue->mType == DT_CONST_ADDRESS || cexp->mDecValue->mType == DT_CONST_INTEGER ||
cexp->mDecValue->mType == DT_CONST_POINTER || cexp->mDecValue->mType == DT_CONST_FLOAT))
{
exp->mType = EX_CONSTANT;
exp->mDecValue = cexp->mDecValue;
exp->mType = EX_CONSTANT;
exp->mDecValue = cexp->mDecValue->ConstCast(exp->mDecType);
changed = true;
}
}