From 656c515bad460e3e1fd7c190697c6796a7567f29 Mon Sep 17 00:00:00 2001 From: omar Date: Wed, 18 Sep 2019 17:21:04 +0200 Subject: [PATCH] Warning fix. --- imgui_demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 1f5c66d6..0c911dfb 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -625,7 +625,7 @@ static void ShowDemoWindowWidgets() { // Disable the default open on single-click behavior and pass in Selected flag according to our selection state. ImGuiTreeNodeFlags node_flags = base_flags; - const bool is_selected = (selection_mask & (1 << i)); + const bool is_selected = (selection_mask & (1 << i)) != 0; if (is_selected) node_flags |= ImGuiTreeNodeFlags_Selected; if (i < 3)