gpt4 book ai didi

ios - AFURLConnectionOperation.m 隐式转换丢失整数精度 : 'int64_t' (aka 'long long' ) to 'NSInteger' (aka 'int' )

转载 作者:可可西里 更新时间:2023-11-01 05:35:24 31 4
gpt4 key购买 nike

我在 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/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com