Reputation: 39
I am using xcode5 and ios7 and the compiler shows me this error: Implicit conversion loses integer precision long long to NSInteger
if (statusCode == 200 && !upload) {
totalBytesExpectedToRead = [response expectedContentLength];
Any help?
Upvotes: 1
Views: 125
Reputation: 8749
NSURLResponse expectedContentLength
returns type long long
.
I suspect you have declared your totalBytesExpectedToRead
variable as an NSInteger
, if you make it long long
the error will go away.
long long totalBytesExpectedToRead;
Upvotes: 1