我在 Xcode 5.1
中收到警告,如下所述
AFNetworking 2.2.0: AFURLConnectionOperation.m Implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'NSInteger' (aka 'int')
这很重要吗?
最佳答案
您可以手动进行以下更改,直到下一个 CocoaPod 版本发布(更改已在 GitHub 中)。
改变:
[decoder decodeInt64ForKey:NSStringFromSelector(@selector(totalBytesRead))];
到:
[decoder decodeIntegerForKey:NSStringFromSelector(@selector(totalBytesRead))];
关于ios - AFURLConnectionOperation.m 隐式转换丢失整数精度 : 'int64_t' (aka 'long long' ) to 'NSInteger' (aka 'int' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22350056/