Fix comparison of integer expressions of different signedness warnings

This commit is contained in:
Nyall Dawson
2024-01-12 08:11:23 +10:00
committed by Jakub Melka
parent bbecbf6311
commit 577866aa2f
11 changed files with 16 additions and 16 deletions

View File

@ -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));
}