x86/iR5900: Fix signed/unsigned comparison in timeout loop

This commit is contained in:
Stenzek 2024-01-08 22:33:50 +10:00 committed by Connor McLaughlin
parent 73cd876f6d
commit 6697e76be1
1 changed files with 1 additions and 1 deletions

View File

@ -2353,7 +2353,7 @@ static void recRecompile(const u32 startpc)
else if ((cpuRegs.code >> 26) == 5)
{
// bne
if (timeout_reg != _Rs_ || _Rt_ != 0 || memRead32(i + 4) != 0)
if (timeout_reg != static_cast<s32>(_Rs_) || _Rt_ != 0 || memRead32(i + 4) != 0)
is_timeout_loop = false;
}
else if (cpuRegs.code != 0)