[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.

This commit is contained in:
Lioncash 2013-10-05 14:38:21 -04:00
parent 2d00c3a4f8
commit a7d073b0da
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}