Calling downloadProgress no longer casting [data length] to (long long)
AFURLConnectionOperationProgressBlock specifies "bytes" as an NSInteger. Master was casting [data length] as a long long, resulting in compilation errors if attempting to compile with more strict complication rules. Only the totalBytes and totalBytesExpected are specified as (and correctly called with) long long values.
This commit is contained in:
parent
d863759f52
commit
1136bc5e2f
1 changed files with 1 additions and 1 deletions
|
|
@ -563,7 +563,7 @@ didReceiveResponse:(NSURLResponse *)response
|
|||
|
||||
if (self.downloadProgress) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
self.downloadProgress((long long)[data length], self.totalBytesRead, self.response.expectedContentLength);
|
||||
self.downloadProgress([data length], self.totalBytesRead, self.response.expectedContentLength);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue