Skip to content

Commit

Permalink
Merge pull request SDWebImage#1104 from pollarm/master
Browse files Browse the repository at this point in the history
Fix parenthesis to avoid crashes
  • Loading branch information
bpoplauschi committed Mar 31, 2015
2 parents 6690de8 + 4dd5a66 commit 704c630
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 704c630

Please sign in to comment.