简体   繁体   English

AFURLConnectionOperation.m隐式转换失去整数精度:'int64_t'(又名'long long')到'NSInteger'(又名'int')

[英]AFURLConnectionOperation.m Implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'NSInteger' (aka 'int')

I got a warning in Xcode 5.1 as stated below 我在Xcode 5.1收到警告,如下所述

AFNetworking 2.2.0: AFURLConnectionOperation.m Implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'NSInteger' (aka 'int') 

Is this important? 这很重要吗?

You can make the following change manually until the next CocoaPod release (the change is already in GitHub ). 您可以手动进行以下更改,直到下一个CocoaPod版本(更改已在GitHub中 )。

change: 更改:

[decoder decodeInt64ForKey:NSStringFromSelector(@selector(totalBytesRead))];

to: 至:

[decoder decodeIntegerForKey:NSStringFromSelector(@selector(totalBytesRead))];

This mean is arm64 architecture int64_t range is -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 but int range is -2,147,483,648 to 2,147,483,647 . 这意味着arm64架构int64_t范围是-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807int范围是-2,147,483,648 to 2,147,483,647 so compiler say to Loss of value. 所以编译器说失去价值。

See a this: ConvertingYourAppto-64Bit 请参阅: ConvertingYourAppto-64Bit

if you don't want more warning. 如果你不想要更多的警告。 you can must change to architecture in Xcode 5.1 您必须在Xcode 5.1中更改为体系结构 在此处输入图像描述]![在此处输入图像描述在此输入图像描述

you probably select as simulator : iPhone Retina (4-inch 64-bit ). 你可能选择模拟器:iPhone Retina(4英寸64位 )。 Try with the 32 bits 试试32位

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 隐式转换失去整数精度:'long long'到'NSInteger'(又名'int') - Implicit conversion loses integer precision: 'long long' to 'NSInteger' (aka 'int') 隐式转换在制作应用程序时将整数精度'NSUInteger'(aka'unsigned long')转换为'int'吗? - implicit conversion loses integer precision 'NSUInteger' (aka 'unsigned long') to 'int' when making app? 隐式转换将整数精度'NSUInteger'(aka'unsigned long')丢失为'int'警告? - implicit conversion loses integer precision 'NSUInteger' (aka 'unsigned long') to 'int' warning? xcode 构建失败 隐式转换丢失 integer 精度:“size_t”(又名“unsigned long”)到“socklen_t”(又名“unsigned int”) - xcode build failing over Implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'socklen_t' (aka 'unsigned int') 隐式转换失去整数精度:'unsigned long'到'int'-错误 - Implicit conversion loses integer precision: 'unsigned long' to 'int' - Error 我怎样才能将 int 等于 int64_t 而不得到转换丢失整数精度警告? - How can i equal a int to a int64_t with out getting the conversion loses integer precision warning? 与指针转换不兼容的整数将'NSInteger'(又名'int')发送到'NSInteger *'类型的参数(又名'int *') - Incompatible Integer to pointer conversion sending 'NSInteger' (aka 'int') to parameter of type 'NSInteger *' (aka 'int *') ARC不允许将'NSInteger'(aka'int')隐式转换为'UIEvent *' - implicit conversion of 'NSInteger' (aka 'int') to 'UIEvent *' is disallowed with ARC 分配给'NSInteger'(又名'int')的整数转换的不兼容指针 - incompatible pointer to integer conversion assigning to 'NSInteger' (aka 'int') iOS 7.1 CommonCrypto库抱怨:隐式转换失去整数精度:'NSUInteger'(无符号长整型)到CC_LONG(unsigned int) - iOS 7.1 CommonCrypto library complains: Implicit conversion loses integer precision: 'NSUInteger' (unsigned long) to CC_LONG (unsigned int)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM