Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
lioncash committed Oct 5, 2013
1 parent 2d00c3a commit a7d073b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/Src/PowerPC/Interpreter/Interpreter.cpp
Expand Up @@ -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();
}
Expand Down

0 comments on commit a7d073b

Please sign in to comment.