javier falbo
javier falbo

Reputation: 39

xcode5 ios7 error compiling code

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

Answers (1)

Ben Trengrove
Ben Trengrove

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

Related Questions