Skip to content

Commit

Permalink
PdfEncoding: Fix a couple of signed/unsigned warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ceztko committed Apr 14, 2024
1 parent 4821340 commit 5d548f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/podofo/main/PdfEncoding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,11 +604,11 @@ void PdfEncoding::writeCIDMapping(PdfObject& cmapObj, const PdfFont& font, const
usedCodeSpaceSizes.insert(codeSpaceSize);
}

int size = 0;
unsigned size = 0;
for (auto& usedCodeSpaceSize : usedCodeSpaceSizes)
{
std::vector<utls::FSSUTFRange> ranges = utls::GetFSSUTFRanges(usedCodeSpaceSize);
size += ranges.size();
size += (unsigned)ranges.size();
}

output.Write(std::to_string(size));
Expand Down
4 changes: 2 additions & 2 deletions src/podofo/main/PdfEncodingMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ void PdfEncodingMapBase::AppendCodeSpaceRange(OutputStream& stream, charbuff& te
usedCodeSpaceSizes.insert(codeSpaceSize);
}

int size = 0;
unsigned size = 0;
for (auto& usedCodeSpaceSize : usedCodeSpaceSizes)
{
std::vector<utls::FSSUTFRange> ranges = utls::GetFSSUTFRanges(usedCodeSpaceSize);
size += ranges.size();
size += (unsigned)ranges.size();
}

stream.Write(std::to_string(size));
Expand Down

0 comments on commit 5d548f9

Please sign in to comment.