Quiet GCC bogus warning.
This commit is contained in:
parent
59fdc3c998
commit
b269f61f8b
3
3rdparty/ocornut-imgui/imgui_demo.cpp
vendored
3
3rdparty/ocornut-imgui/imgui_demo.cpp
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user