From a5d1f85040a54c37fe2082c3da4c913a15412fb1 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 15 Aug 2020 23:47:18 -0700 Subject: [PATCH] Fix compiler warning in implot_demo.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit implot_demo.cpp:1012:69: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=] --- implot_demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implot_demo.cpp b/implot_demo.cpp index f6cedba..d8e5f35 100644 --- a/implot_demo.cpp +++ b/implot_demo.cpp @@ -1009,7 +1009,7 @@ void ShowDemoWindow(bool* p_open) { static BenchmarkItem items[n_items]; ImGui::BulletText("Make sure VSync is disabled."); ImGui::BulletText("%d lines with %d points each @ %.3f FPS.",n_items,1000,ImGui::GetIO().Framerate); - ImGui::BulletText("ImDrawIdx: %d-bit", sizeof(ImDrawIdx) * 8); + ImGui::BulletText("ImDrawIdx: %d-bit", (int)(sizeof(ImDrawIdx) * 8)); ImGui::BulletText("ImGuiBackendFlags_RendererHasVtxOffset: %s", (ImGui::GetIO().BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) ? "True" : "False"); ImGui::BulletText("If you see visual artifacts, do one of the following:"); ImGui::Indent();