From e472713c62c78cd7cdac8c6d381ff8ef47f49cfe Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Sun, 17 Jan 2016 22:17:35 +0000 Subject: [PATCH] pcsx2: Fix inverted EE cycle rate range check Overclock is now positive and underclock is now negative (it used to be the other way round), so the range check should reflect that. Coverity CID 156245 Bad bit shift operation(BAD SHIFT) --- pcsx2/x86/ix86-32/iR5900-32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/x86/ix86-32/iR5900-32.cpp b/pcsx2/x86/ix86-32/iR5900-32.cpp index 402c795d68..a4dc206845 100644 --- a/pcsx2/x86/ix86-32/iR5900-32.cpp +++ b/pcsx2/x86/ix86-32/iR5900-32.cpp @@ -1031,7 +1031,7 @@ static u32 scaleblockcycles() s8 cyclerate = EmuConfig.Speedhacks.EECycleRate; u32 scale_cycles = 0; - if (cyclerate == 0 || lowcycles || cyclerate > 99 || cyclerate < -2) + if (cyclerate == 0 || lowcycles || cyclerate < -99 || cyclerate > 2) scale_cycles = s_nBlockCycles >> 3; // Default cycle rate else if (cyclerate > 0)