From c94e5122d6a3703ca4a1c0fa999963f55d39cb23 Mon Sep 17 00:00:00 2001 From: Branimir Karadzic Date: Wed, 6 Aug 2014 09:47:12 -0700 Subject: [PATCH] Fixed GCC warning. --- examples/common/imgui/imgui.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/common/imgui/imgui.cpp b/examples/common/imgui/imgui.cpp index 2942fd11..c965aba7 100644 --- a/examples/common/imgui/imgui.cpp +++ b/examples/common/imgui/imgui.cpp @@ -611,10 +611,7 @@ struct Imgui m_left = left; m_scroll = _scroll; - if (_inputChar > 0x80) - { - _inputChar = 0; - } + _inputChar = 0 > _inputChar ? 0 : _inputChar; m_lastChar = m_char; m_char = _inputChar; }