Skip to content

Commit

Permalink
Fixes int/uint comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Tabin committed Dec 10, 2022
1 parent 2381c8f commit 7dde2c9
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 7dde2c9

Please sign in to comment.