mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-25 07:37:46 -05:00
PPC: fix UB sint overflow
This commit is contained in:
parent
9d639326a2
commit
556ad2abd5
|
|
@ -33,7 +33,7 @@ static bool checkAdditionOverflow(uint32 x, uint32 y, uint32 r)
|
|||
static void PPCInterpreter_ADD(PPCInterpreter_t* hCPU, uint32 opcode)
|
||||
{
|
||||
PPC_OPC_TEMPL3_XO();
|
||||
hCPU->gpr[rD] = (int)hCPU->gpr[rA] + (int)hCPU->gpr[rB];
|
||||
hCPU->gpr[rD] = hCPU->gpr[rA] + hCPU->gpr[rB];
|
||||
if (opHasRC())
|
||||
ppc_update_cr0(hCPU, hCPU->gpr[rD]);
|
||||
PPCInterpreter_nextInstruction(hCPU);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user