Permalink
Browse files

fix an implicit conversion error (fix #129)

  • Loading branch information...
1 parent aa64d20 commit b78238802d12678d19999ad1932f76882dbc895b @rs committed May 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 SDWebImage/SDWebImageDownloader.m
@@ -116,7 +116,7 @@ - (void)connection:(NSURLConnection *)aConnection didReceiveResponse:(NSURLRespo
{
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

0 comments on commit b782388

Please sign in to comment.