Browse Source

Fixed GCC warning.

Branimir Karadzic 11 years ago
parent
commit
c94e5122d6
1 changed files with 1 additions and 4 deletions
  1. 1 4
      examples/common/imgui/imgui.cpp

+ 1 - 4
examples/common/imgui/imgui.cpp

@@ -611,10 +611,7 @@ struct Imgui
 		m_left = left;
 		m_left = left;
 		m_scroll = _scroll;
 		m_scroll = _scroll;
 
 
-		if (_inputChar > 0x80)
-		{
-			_inputChar = 0;
-		}
+		_inputChar = 0 > _inputChar ? 0 : _inputChar;
 		m_lastChar = m_char;
 		m_lastChar = m_char;
 		m_char = _inputChar;
 		m_char = _inputChar;
 	}
 	}