From dbf651e4937098573036b590401b58f6d69696a8 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 31 Dec 2019 11:41:52 +1000 Subject: [PATCH] CPU/Interpreter: Remove redundant comparison in divu instruction --- src/core/cpu_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cpu_core.cpp b/src/core/cpu_core.cpp index 4653fa0b2..3f4f6701e 100644 --- a/src/core/cpu_core.cpp +++ b/src/core/cpu_core.cpp @@ -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(num); } else