Skip to content

Commit 1655803

Browse files
author
Olivier Poitrey
committed
Merge pull request SDWebImage#352 from jparise/getSize-return-type
-getSize now returns an `unsigned long long`.
2 parents eda9878 + 1e37b71 commit 1655803

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)