Authored by Jon Parise

-getSize now returns an `unsigned long long`.

This type now matches the type and width of the value returned by the
`fileSize` accessor of the `NSDictionary (NSFileAttributes)` category
(which is what is used when accumulating the total cache size).
@@ -134,7 +134,7 @@ typedef enum SDImageCacheType SDImageCacheType; @@ -134,7 +134,7 @@ typedef enum SDImageCacheType SDImageCacheType;
134 /** 134 /**
135 * Get the size used by the disk cache 135 * Get the size used by the disk cache
136 */ 136 */
137 -- (int)getSize; 137 +- (unsigned long long)getSize;
138 138
139 /** 139 /**
140 * Get the number of images in the disk cache 140 * Get the number of images in the disk cache
@@ -284,9 +284,9 @@ static const NSInteger kDefaultCacheMaxCacheAge = 60 * 60 * 24 * 7; // 1 week @@ -284,9 +284,9 @@ static const NSInteger kDefaultCacheMaxCacheAge = 60 * 60 * 24 * 7; // 1 week
284 }); 284 });
285 } 285 }
286 286
287 --(int)getSize 287 +-(unsigned long long)getSize
288 { 288 {
289 - int size = 0; 289 + unsigned long long size = 0;
290 NSDirectoryEnumerator *fileEnumerator = [[NSFileManager defaultManager] enumeratorAtPath:self.diskCachePath]; 290 NSDirectoryEnumerator *fileEnumerator = [[NSFileManager defaultManager] enumeratorAtPath:self.diskCachePath];
291 for (NSString *fileName in fileEnumerator) 291 for (NSString *fileName in fileEnumerator)
292 { 292 {