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

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