Fixed some GCC compiler warnings

This commit is contained in:
calc84maniac 2012-01-03 10:57:58 -05:00
parent f9f9bb9870
commit 415aad3b03
2 changed files with 3 additions and 3 deletions

View File

@ -1525,14 +1525,14 @@ void Jit64::rlwimix(UGeckoInstruction inst)
} }
else if (inst.SH) else if (inst.SH)
{ {
if (mask == -(1 << inst.SH)) if (mask == -(1U << inst.SH))
{ {
MOV(32, R(EAX), gpr.R(s)); MOV(32, R(EAX), gpr.R(s));
SHL(32, R(EAX), Imm8(inst.SH)); SHL(32, R(EAX), Imm8(inst.SH));
AND(32, gpr.R(a), Imm32(~mask)); AND(32, gpr.R(a), Imm32(~mask));
OR(32, gpr.R(a), R(EAX)); 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)); MOV(32, R(EAX), gpr.R(s));
SHR(32, R(EAX), Imm8(32-inst.SH)); SHR(32, R(EAX), Imm8(32-inst.SH));