1
votes

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?

1

1 Answers

1
votes

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;