diff --git a/src/xenia/cpu/compiler/passes/constant_propagation_pass.cc b/src/xenia/cpu/compiler/passes/constant_propagation_pass.cc index 0663cb613..c8a5ef632 100644 --- a/src/xenia/cpu/compiler/passes/constant_propagation_pass.cc +++ b/src/xenia/cpu/compiler/passes/constant_propagation_pass.cc @@ -157,7 +157,7 @@ bool ConstantPropagationPass::Run(HIRBuilder* builder) { if (i->src1.value->IsConstant()) { TypeName target_type = v->type; v->set_from(i->src1.value); - v->Convert(target_type, ROUND_TO_NEAREST); + v->Convert(target_type, RoundMode(i->flags)); i->Remove(); } break;