Quiet GCC bogus warning.

This commit is contained in:
Branimir Karadžić 2016-08-06 20:07:03 -07:00
parent 59fdc3c998
commit b269f61f8b

View File

@ -2184,7 +2184,8 @@ struct ExampleAppConsole
}
else if (Stricmp(command_line, "HISTORY") == 0)
{
for (int i = History.Size >= 10 ? History.Size - 10 : 0; i < History.Size; i++)
int first = History.Size - 10;
for (int i = first > 0 ? first : 0; i < History.Size; i++)
AddLog("%3d: %s\n", i, History[i]);
}
else