Fix 64bit string formatting warnings

This commit is contained in:
Alex Burgel 2013-10-31 15:00:59 -04:00
parent 95ef42d48c
commit 21cd001f51
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ static SDWebImagePrefetcher *instance;
- (void)reportStatus - (void)reportStatus
{ {
NSUInteger total = [self.prefetchURLs count]; NSUInteger total = [self.prefetchURLs count];
NSLog(@"Finished prefetching (%d successful, %d skipped, timeElasped %.2f)", total - _skippedCount, _skippedCount, CFAbsoluteTimeGetCurrent() - _startedTime); NSLog(@"Finished prefetching (%lu successful, %lu skipped, timeElasped %.2f)", (unsigned long)(total - _skippedCount), (unsigned long)_skippedCount, CFAbsoluteTimeGetCurrent() - _startedTime);
} }
- (void)prefetchURLs:(NSArray *)urls - (void)prefetchURLs:(NSArray *)urls
@ -75,7 +75,7 @@ static SDWebImagePrefetcher *instance;
- (void)webImageManager:(SDWebImageManager *)imageManager didFinishWithImage:(UIImage *)image - (void)webImageManager:(SDWebImageManager *)imageManager didFinishWithImage:(UIImage *)image
{ {
_finishedCount++; _finishedCount++;
NSLog(@"Prefetched %d out of %d", _finishedCount, [self.prefetchURLs count]); NSLog(@"Prefetched %lu out of %lu", (unsigned long)_finishedCount, (unsigned long)[self.prefetchURLs count]);
if ([self.prefetchURLs count] > _requestedCount) if ([self.prefetchURLs count] > _requestedCount)
{ {
@ -90,7 +90,7 @@ static SDWebImagePrefetcher *instance;
- (void)webImageManager:(SDWebImageManager *)imageManager didFailWithError:(NSError *)error - (void)webImageManager:(SDWebImageManager *)imageManager didFailWithError:(NSError *)error
{ {
_finishedCount++; _finishedCount++;
NSLog(@"Prefetched %d out of %d (Failed)", _finishedCount, [self.prefetchURLs count]); NSLog(@"Prefetched %lu out of %lu (Failed)", (unsigned long)_finishedCount, (unsigned long)[self.prefetchURLs count]);
// Add last failed // Add last failed
_skippedCount++; _skippedCount++;