Skip to content

Commit

Permalink
Merge pull request #175 from ctabin/fix-uint
Browse files Browse the repository at this point in the history
Fixes uint usage (does not exist on Windows)
  • Loading branch information
ctabin authored Dec 10, 2022
2 parents d1bf735 + e1898dc commit 681bac0
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 @@ -909,7 +909,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 (uint uiChunk=0 ; uiChunk<nbChunks ; ++uiChunk) {
for (libzippp_uint32 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 681bac0

Please sign in to comment.