arm64jit: Fix an integer truncation warning.

This commit is contained in:
Unknown W. Brackets 2017-12-27 19:34:43 -08:00
parent 257a4fdd12
commit 092f98d313

View File

@ -357,7 +357,8 @@ void Arm64Jit::Comp_mxc1(MIPSOpcode op)
case 4: //FI(fs) = R(rt); break; //mtc1
if (gpr.IsImm(rt)) {
uint32_t ival = gpr.GetImm(rt);
// This can't be run on LO/HI.
uint32_t ival = (uint32_t)gpr.GetImm(rt);
float floatval;
memcpy(&floatval, &ival, sizeof(floatval));
uint8_t imm8;