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
@ -773,7 +773,7 @@ void PDFDiff::performCompare(const std::vector<PDFDiffPageContext>& leftPrepared
|
||||
pageIndex1 = textItem->pageIndex;
|
||||
}
|
||||
|
||||
if (textCompareItem.charIndex + textCompareItem.charCount <= textItem->characterBoundingRects.size())
|
||||
if (static_cast< std::size_t >( textCompareItem.charIndex ) + textCompareItem.charCount <= textItem->characterBoundingRects.size())
|
||||
{
|
||||
const size_t startIndex = textCompareItem.charIndex;
|
||||
const size_t endIndex = startIndex + textCompareItem.charCount;
|
||||
@ -801,7 +801,7 @@ void PDFDiff::performCompare(const std::vector<PDFDiffPageContext>& leftPrepared
|
||||
pageIndex2 = textItem->pageIndex;
|
||||
}
|
||||
|
||||
if (textCompareItem.charIndex + textCompareItem.charCount <= textItem->characterBoundingRects.size())
|
||||
if (static_cast< std::size_t >(textCompareItem.charIndex) + textCompareItem.charCount <= textItem->characterBoundingRects.size())
|
||||
{
|
||||
const size_t startIndex = textCompareItem.charIndex;
|
||||
const size_t endIndex = startIndex + textCompareItem.charCount;
|
||||
|
Reference in New Issue
Block a user