CPU/Interpreter: Remove redundant comparison in divu instruction

This commit is contained in:
Connor McLaughlin 2019-12-31 11:41:52 +10:00
parent 0f1f5a4f49
commit dbf651e493

View file

@ -874,7 +874,7 @@ void Core::ExecuteInstruction()
if (denom == 0)
{
// divide by zero
m_regs.lo = (num >= 0) ? UINT32_C(0xFFFFFFFF) : UINT32_C(1);
m_regs.lo = UINT32_C(0xFFFFFFFF);
m_regs.hi = static_cast<u32>(num);
}
else