简体   繁体   中英

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?

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;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM