Browse Source

Quiet GCC bogus warning.

Branimir Karadžić 9 years ago
parent
commit
b269f61f8b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      3rdparty/ocornut-imgui/imgui_demo.cpp

+ 2 - 1
3rdparty/ocornut-imgui/imgui_demo.cpp

@@ -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