Skip to content

Commit

Permalink
Merge pull request #173 from ctabin/fix-uint-comp2
Browse files Browse the repository at this point in the history
Fixes int/uint comparison
  • Loading branch information
ctabin authored Dec 10, 2022
2 parents 2381c8f + 7dde2c9 commit 6be928e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libzippp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ int ZipArchive::readEntry(const ZipEntry& zipEntry, std::function<bool(const voi
char* data = NEW_CHAR_ARRAY(chunksize)
if (data!=nullptr) {
string::size_type nbChunks = maxSize/chunksize;
for (int uiChunk=0 ; uiChunk<nbChunks ; ++uiChunk) {
for (uint uiChunk=0 ; uiChunk<nbChunks ; ++uiChunk) {
result = zip_fread(zipFile, data, chunksize);
if (result>0) {
if (result!=static_cast<libzippp_int64>(chunksize)) {
Expand Down

0 comments on commit 6be928e

Please sign in to comment.