Remove impossible < 0 checks for size_t

This commit is contained in:
Nyall Dawson
2024-01-12 08:09:44 +10:00
committed by Jakub Melka
parent 6354e4cad1
commit bbecbf6311
2 changed files with 2 additions and 2 deletions

View File

@ -2646,7 +2646,7 @@ PDFAnnotationDefaultAppearance PDFAnnotationDefaultAppearance::parse(const QByte
auto readNumber = [&tokens](size_t index) -> PDFReal
{
Q_ASSERT(index >= 0 && index < tokens.size());
Q_ASSERT(index < tokens.size());
const PDFLexicalAnalyzer::Token& token = tokens[index];
if (token.type == PDFLexicalAnalyzer::TokenType::Real ||
token.type == PDFLexicalAnalyzer::TokenType::Integer)