Skip to content

Commit 1e37b71

Browse files
committed
-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).
1 parent eda9878 commit 1e37b71

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SDWebImage/SDImageCache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ typedef enum SDImageCacheType SDImageCacheType;
134134
/**
135135
* Get the size used by the disk cache
136136
*/
137-
- (int)getSize;
137+
- (unsigned long long)getSize;
138138

139139
/**
140140
* Get the number of images in the disk cache

SDWebImage/SDImageCache.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ - (void)cleanDisk
284284
});
285285
}
286286

287-
-(int)getSize
287+
-(unsigned long long)getSize
288288
{
289-
int size = 0;
289+
unsigned long long size = 0;
290290
NSDirectoryEnumerator *fileEnumerator = [[NSFileManager defaultManager] enumeratorAtPath:self.diskCachePath];
291291
for (NSString *fileName in fileEnumerator)
292292
{

0 commit comments

Comments
 (0)