From 9857f11798a49ca0717f5890f0d154ccf0750d8a Mon Sep 17 00:00:00 2001 From: Riyyi Date: Fri, 22 Jul 2022 19:33:47 +0200 Subject: [PATCH] Util: Remove comparison of unsigned expression, it is always true --- src/util/genericlexer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/util/genericlexer.cpp b/src/util/genericlexer.cpp index e44b85e..a360a12 100644 --- a/src/util/genericlexer.cpp +++ b/src/util/genericlexer.cpp @@ -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)