AFURLConnectionOperation.m隐式转换失去整数精度:'int64_t'(又名'long long')到'NSInteger'(又名'int') [英] AFURLConnectionOperation.m Implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'NSInteger' (aka 'int')

查看:1308
本文介绍了AFURLConnectionOperation.m隐式转换失去整数精度:'int64_t'(又名'long long')到'NSInteger'(又名'int')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Xcode 5.1 中收到警告,如下所述

I got a warning in Xcode 5.1 as stated below

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

这很重要吗?

推荐答案

这意味着arm64架构 int64_t 范围是 -9,223,372,036,854,775,808到9,223,372,036,854,775,807 但是 int 范围是 -2,147,483,648到2,147,483,647 。所以编译器说损失价值。

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. so compiler say to Loss of value.

看到这个: ConvertingYourAppto-64Bit

如果你不想要更多警告。您必须在Xcode 5.1中更改为架构

if you don't want more warning. you can must change to architecture in Xcode 5.1

这篇关于AFURLConnectionOperation.m隐式转换失去整数精度:'int64_t'(又名'long long')到'NSInteger'(又名'int')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆