Fix an implicit conversion error (fix #129)
This commit is contained in:
parent
aa64d20128
commit
b78238802d
|
@ -116,7 +116,7 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot
|
|||
{
|
||||
if (![response respondsToSelector:@selector(statusCode)] || [((NSHTTPURLResponse *)response) statusCode] < 400)
|
||||
{
|
||||
expectedSize = response.expectedContentLength > 0 ? response.expectedContentLength : 0;
|
||||
expectedSize = response.expectedContentLength > 0 ? (NSUInteger)response.expectedContentLength : 0;
|
||||
self.imageData = SDWIReturnAutoreleased([[NSMutableData alloc] initWithCapacity:expectedSize]);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue