Browse Source

Util: Remove comparison of unsigned expression, it is always true

master
Riyyi 2 years ago
parent
commit
9857f11798
  1. 4
      src/util/genericlexer.cpp

4
src/util/genericlexer.cpp

@ -38,9 +38,7 @@ bool GenericLexer::isEOF() const
char GenericLexer::peek(size_t offset) const char GenericLexer::peek(size_t offset) const
{ {
return (m_index + offset >= 0 && m_index + offset < m_input.length()) return (m_index + offset < m_input.length()) ? m_input[m_index + offset] : '\0';
? m_input[m_index + offset]
: '\0';
} }
void GenericLexer::ignore(size_t count) void GenericLexer::ignore(size_t count)

Loading…
Cancel
Save