Util: Remove comparison of unsigned expression, it is always true
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user