Fix an implicit conversion error (fix #129)

This commit is contained in:
Olivier Poitrey 2012-05-22 16:39:21 +02:00
parent aa64d20128
commit b78238802d
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot
{ {
if (![response respondsToSelector:@selector(statusCode)] || [((NSHTTPURLResponse *)response) statusCode] < 400) 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]); self.imageData = SDWIReturnAutoreleased([[NSMutableData alloc] initWithCapacity:expectedSize]);
} }
else else