mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Fix comparison of integer expressions of different signedness warnings
This commit is contained in:
committed by
Jakub Melka
parent
bbecbf6311
commit
577866aa2f
@ -283,9 +283,9 @@ PDFDocumentManipulator::ProcessedPages PDFDocumentManipulator::collectObjectsAnd
|
||||
std::vector<pdf::PDFObjectReference> objectsToMerge;
|
||||
objectsToMerge.reserve(std::distance(it, itEnd));
|
||||
|
||||
for (int pageIndex : pageIndices)
|
||||
for (PDFInteger pageIndex : pageIndices)
|
||||
{
|
||||
if (pageIndex < 0 || pageIndex >= currentPages.size())
|
||||
if (pageIndex < 0 || pageIndex >= static_cast< PDFInteger >(currentPages.size()))
|
||||
{
|
||||
throw PDFException(tr("Missing page (%1) in a document.").arg(pageIndex));
|
||||
}
|
||||
|
Reference in New Issue
Block a user