Browse Source

Warning fix.

omar 6 năm trước cách đây
mục cha
commit
656c515bad
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      imgui_demo.cpp

+ 1 - 1
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)