Fixed GCC_WARN_64_TO_32_BIT_CONVERSION warning

This commit is contained in:
nicked
2014-10-31 11:09:31 +01:00
parent d68c99b890
commit 55437a8b8e
+3 -3
View File
@@ -82,7 +82,7 @@
[delegate zipArchiveWillUnzipArchiveAtPath:path zipInfo:globalInfo];
}
if ([delegate respondsToSelector:@selector(zipArchiveProgressEvent:total:)]) {
[delegate zipArchiveProgressEvent:currentPosition total:fileSize];
[delegate zipArchiveProgressEvent:(NSInteger)currentPosition total:(NSInteger)fileSize];
}
NSInteger currentFileNumber = 0;
@@ -118,7 +118,7 @@
archivePath:path fileInfo:fileInfo];
}
if ([delegate respondsToSelector:@selector(zipArchiveProgressEvent:total:)]) {
[delegate zipArchiveProgressEvent:currentPosition total:fileSize];
[delegate zipArchiveProgressEvent:(NSInteger)currentPosition total:(NSInteger)fileSize];
}
char *filename = (char *)malloc(fileInfo.size_filename + 1);
@@ -294,7 +294,7 @@
}
// final progress event = 100%
if ([delegate respondsToSelector:@selector(zipArchiveProgressEvent:total:)]) {
[delegate zipArchiveProgressEvent:fileSize total:fileSize];
[delegate zipArchiveProgressEvent:(NSInteger)fileSize total:(NSInteger)fileSize];
}
return success;