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)
{
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));

View File

@ -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
}
}