mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 22:49:00 +01:00
quick UB fix for 3c0bdd74
This commit is contained in:
parent
c0495d1d11
commit
096399d371
@ -359,7 +359,7 @@ void Interpreter::srawx(UGeckoInstruction inst)
|
||||
s32 rrs = rGPR[inst.RS];
|
||||
rGPR[inst.RA] = rrs >> amount;
|
||||
|
||||
SetCarry(rrs < 0 && (u32(rrs) << (32 - amount)) != 0);
|
||||
SetCarry(rrs < 0 && amount > 0 && (u32(rrs) << (32 - amount)) != 0);
|
||||
}
|
||||
|
||||
if (inst.Rc)
|
||||
@ -373,7 +373,7 @@ void Interpreter::srawix(UGeckoInstruction inst)
|
||||
s32 rrs = rGPR[inst.RS];
|
||||
rGPR[inst.RA] = rrs >> amount;
|
||||
|
||||
SetCarry(rrs < 0 && (u32(rrs) << (32 - amount)) != 0);
|
||||
SetCarry(rrs < 0 && amount > 0 && (u32(rrs) << (32 - amount)) != 0);
|
||||
|
||||
if (inst.Rc)
|
||||
Helper_UpdateCR0(rGPR[inst.RA]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user