From 61a96c79889fc212d66c3c200700d614560e9392 Mon Sep 17 00:00:00 2001 From: Attila Uygun Date: Thu, 2 Nov 2023 21:24:53 +0100 Subject: [PATCH] Fix for compiler warning --- src/engine/imgui_backend.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/imgui_backend.cc b/src/engine/imgui_backend.cc index a0a394b..969694c 100644 --- a/src/engine/imgui_backend.cc +++ b/src/engine/imgui_backend.cc @@ -131,7 +131,7 @@ void ImguiBackend::NewFrame(float delta_time) { void ImguiBackend::Render() { ImGui::Render(); ImDrawData* draw_data = ImGui::GetDrawData(); - if (geometries_.size() < draw_data->CmdListsCount) + if ((int)geometries_.size() < draw_data->CmdListsCount) geometries_.resize(draw_data->CmdListsCount, 0); for (int n = 0; n < draw_data->CmdListsCount; n++) { const ImDrawList* cmd_list = draw_data->CmdLists[n];