Permalink
Browse files

arm64jit: Fix an integer truncation warning.

  • Loading branch information...
unknownbrackets committed Dec 28, 2017
1 parent 257a4fd commit 092f98d313386219e95040432fe91470070b578c
Showing with 2 additions and 1 deletion.
  1. +2 −1 Core/MIPS/ARM64/Arm64CompFPU.cpp
@@ -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;

0 comments on commit 092f98d

Please sign in to comment.