Interpreter_Branch: Make type of the bitmask in rfi a u32 instead of int

Given this is a bitmask, we should be using an unsigned type to store it
(especially given it's outside the range an int can represent properly
without being considered negative).

No behavior change is caused by this, it just silences a sign conversion
warning.
This commit is contained in:
Lioncash 2018-05-18 13:33:19 -04:00
parent bdce441bb9
commit 9911e51c8f
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ void Interpreter::rfi(UGeckoInstruction inst)
{
// Restore saved bits from SRR1 to MSR.
// Gecko/Broadway can save more bits than explicitly defined in ppc spec
const int mask = 0x87C0FFFF;
const u32 mask = 0x87C0FFFF;
MSR.Hex = (MSR.Hex & ~mask) | (SRR1 & mask);
// MSR[13] is set to 0.
MSR.Hex &= 0xFFFBFFFF;