mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Remove impossible < 0 checks for size_t
This commit is contained in:
committed by
Jakub Melka
parent
6354e4cad1
commit
bbecbf6311
@ -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)
|
||||
|
Reference in New Issue
Block a user