Revert "Fix two warnings about losing precision in comparison"

This reverts commit a710bc5472.
This commit is contained in:
DreamPiggy 2018-04-17 11:27:50 +08:00
parent c5647c8f8a
commit d19311e08c
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ typedef NSMutableDictionary<NSString *, id> SDCallbacksDictionary;
@property (strong, nonatomic, nullable) NSMutableData *imageData;
@property (copy, nonatomic, nullable) NSData *cachedData; // for `SDWebImageDownloaderIgnoreCachedResponse`
@property (copy, nonatomic, nullable) NSString *cacheKey;
@property (assign, nonatomic, readwrite) NSUInteger expectedSize;
@property (assign, nonatomic, readwrite) long long expectedSize;
@property (strong, nonatomic, nullable, readwrite) NSURLResponse *response;
// This is weak because it is injected by whoever manages this session. If this gets nil-ed out, we won't be able to run
@ -342,7 +342,7 @@ didReceiveResponse:(NSURLResponse *)response
// Get the image data
__block NSData *imageData = [self.imageData copy];
// Get the total bytes downloaded
const NSUInteger totalSize = imageData.length;
const NSInteger totalSize = imageData.length;
// Get the finish status
BOOL finished = (totalSize >= self.expectedSize);