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:
Gareth du Plooy 2012-08-23 11:59:54 -05:00
parent d863759f52
commit 1136bc5e2f

View file

@ -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);
});
}
}