From a7d073b0da953ad49e7a06ed2ca68c043976630f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 5 Oct 2013 14:38:21 -0400 Subject: [PATCH] [Core] Simplify a loop within function Run() in Interpreter.cpp. The increment variable for the for loop is never used at all, so it's sensible to replace it with a while loop. --- Source/Core/Core/Src/PowerPC/Interpreter/Interpreter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter.cpp b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter.cpp index a99eab7cea..0f15990b9d 100644 --- a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter.cpp +++ b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter.cpp @@ -291,9 +291,9 @@ void Interpreter::Run() while (CoreTiming::downcount > 0) { m_EndBlock = false; - int i; + int cycles = 0; - for (i = 0; !m_EndBlock; i++) + while (!m_EndBlock) { cycles += SingleStepInner(); }