Skip to content

Commit

Permalink
Fix parenthesis to avoid crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Pollard authored and Mike Pollard committed Mar 30, 2015
1 parent 6690de8 commit 4dd5a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDWebImage/SDWebImageDownloaderOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ - (BOOL)isConcurrent {
- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {

//'304 Not Modified' is an exceptional one
if ((![response respondsToSelector:@selector(statusCode)] || [((NSHTTPURLResponse *)response) statusCode] < 400) && [((NSHTTPURLResponse *)response) statusCode] != 304) {
if (![response respondsToSelector:@selector(statusCode)] || ([((NSHTTPURLResponse *)response) statusCode] < 400 && [((NSHTTPURLResponse *)response) statusCode] != 304)) {
NSInteger expected = response.expectedContentLength > 0 ? (NSInteger)response.expectedContentLength : 0;
self.expectedSize = expected;
if (self.progressBlock) {
Expand Down

0 comments on commit 4dd5a66

Please sign in to comment.