diff --git a/ObjectiveCExample/ObjectiveCExampleTests/SSZipArchiveTests.m b/ObjectiveCExample/ObjectiveCExampleTests/SSZipArchiveTests.m index 53bd8b6..21ad087 100644 --- a/ObjectiveCExample/ObjectiveCExampleTests/SSZipArchiveTests.m +++ b/ObjectiveCExample/ObjectiveCExampleTests/SSZipArchiveTests.m @@ -34,7 +34,7 @@ { _didUnzipArchive = YES; } -- (void)zipArchiveProgressEvent:(NSInteger)loaded total:(NSInteger)total +- (void)zipArchiveProgressEvent:(unsigned long long)loaded total:(unsigned long long)total { _loaded = (int)loaded; _total = (int)total; @@ -380,8 +380,8 @@ NSLog(@"*** zipArchiveDidUnzipFileAtIndex: `%d` totalFiles: `%d` archivePath: `%@` fileInfo:", (int)fileIndex, (int)totalFiles, archivePath); } -- (void)zipArchiveProgressEvent:(NSInteger)loaded total:(NSInteger)total { - NSLog(@"*** zipArchiveProgressEvent: loaded: `%d` total: `%d`", (int)loaded, (int)total); +- (void)zipArchiveProgressEvent:(unsigned long long)loaded total:(unsigned long long)total { + NSLog(@"*** zipArchiveProgressEvent: loaded: `%llu` total: `%llu`", loaded, total); [progressEvents addObject:@(loaded)]; } diff --git a/SSZipArchive/SSZipArchive.m b/SSZipArchive/SSZipArchive.m index 0413993..c041ccf 100755 --- a/SSZipArchive/SSZipArchive.m +++ b/SSZipArchive/SSZipArchive.m @@ -128,7 +128,7 @@ [delegate zipArchiveWillUnzipArchiveAtPath:path zipInfo:globalInfo]; } if ([delegate respondsToSelector:@selector(zipArchiveProgressEvent:total:)]) { - [delegate zipArchiveProgressEvent:(NSInteger)currentPosition total:(NSInteger)fileSize]; + [delegate zipArchiveProgressEvent:currentPosition total:fileSize]; } NSInteger currentFileNumber = 0;