From 9afe3946d1f10f2c34aa2cda07d7efb525782af5 Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Sat, 25 Mar 2017 14:05:20 -0700 Subject: [PATCH] JitArm64_Integer: fix signedness comparison warning Fixes warning: ``` dolphin/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp:1139:64: warning: comparison of integers of different signs: 'u32' (aka 'unsigned int') and 'int' [-Wsign-compare] else if (gpr.IsImm(b) && gpr.GetImm(b) != 0 && gpr.GetImm(b) != -1) ~~~~~~~~~~~~~ ^ ~~ ``` --- Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp index 2a597e37ea..bde2903917 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp @@ -1149,7 +1149,7 @@ void JitArm64::divwx(UGeckoInstruction inst) if (inst.Rc) ComputeRC(imm_d); } - else if (gpr.IsImm(b) && gpr.GetImm(b) != 0 && gpr.GetImm(b) != -1) + else if (gpr.IsImm(b) && gpr.GetImm(b) != 0 && gpr.GetImm(b) != -1u) { ARM64Reg WA = gpr.GetReg(); MOVI2R(WA, gpr.GetImm(b));