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

This commit is contained in:
Riyyi
2022-07-22 21:26:26 +02:00
parent da5dce22e6
commit 9857f11798
+1 -3
View File
@@ -38,9 +38,7 @@ bool GenericLexer::isEOF() const
char GenericLexer::peek(size_t offset) const
{
return (m_index + offset >= 0 && m_index + offset < m_input.length())
? m_input[m_index + offset]
: '\0';
return (m_index + offset < m_input.length()) ? m_input[m_index + offset] : '\0';
}
void GenericLexer::ignore(size_t count)