Removes some compile warnings.

This commit is contained in:
Bohdan Hernandez
2014-05-12 09:52:50 +01:00
parent 57b6018ca0
commit b91fe135e2
+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);
@@ -300,7 +300,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;