From 415aad3b03b28c734d3c9ec8d4ee1e6b99db8815 Mon Sep 17 00:00:00 2001 From: calc84maniac Date: Tue, 3 Jan 2012 10:57:58 -0500 Subject: [PATCH] Fixed some GCC compiler warnings --- Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp | 4 ++-- Source/Core/Core/Src/PowerPC/JitCommon/Jit_Util.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp b/Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp index 56456bbf75..22da415d37 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64/Jit_Integer.cpp @@ -1525,14 +1525,14 @@ void Jit64::rlwimix(UGeckoInstruction inst) } else if (inst.SH) { - if (mask == -(1 << inst.SH)) + if (mask == -(1U << inst.SH)) { MOV(32, R(EAX), gpr.R(s)); SHL(32, R(EAX), Imm8(inst.SH)); AND(32, gpr.R(a), Imm32(~mask)); OR(32, gpr.R(a), R(EAX)); } - else if (mask == (1 << inst.SH) - 1) + else if (mask == (1U << inst.SH) - 1) { MOV(32, R(EAX), gpr.R(s)); SHR(32, R(EAX), Imm8(32-inst.SH)); diff --git a/Source/Core/Core/Src/PowerPC/JitCommon/Jit_Util.cpp b/Source/Core/Core/Src/PowerPC/JitCommon/Jit_Util.cpp index b1f8a01f96..26abb5a890 100644 --- a/Source/Core/Core/Src/PowerPC/JitCommon/Jit_Util.cpp +++ b/Source/Core/Core/Src/PowerPC/JitCommon/Jit_Util.cpp @@ -359,4 +359,4 @@ void EmuCodeBlock::JitClearCAOV(bool oe) AND(32, M(&PowerPC::ppcState.spr[SPR_XER]), Imm32(~XER_CA_MASK & ~XER_OV_MASK)); //XER.CA, XER.OV = 0 else AND(32, M(&PowerPC::ppcState.spr[SPR_XER]), Imm32(~XER_CA_MASK)); //XER.CA = 0 -} \ No newline at end of file +}