AFURLConnectionOperation.m Implicit conversion loses the whole precision: 'int64_t' (aka 'long long') to 'NSInteger' (aka 'int')

I got a warning in Xcode 5.1as below

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

It is important?

+4
source share
4 answers

This means that arm64 architecture int64_tis in range -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807, but int- -2,147,483,648 to 2,147,483,647. therefore, the compiler says "Loss of value."

See the following: Converting YourAppto-64Bit

if you do not want more warnings. you can change the architecture in Xcode 5.1enter image description here]! [enter image description hereenter image description here

+1
source

CocoaPod ( GitHub).

:

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

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

, , : iPhone Retina (4- 64-). 32

0

Source: https://habr.com/ru/post/1531318/


All Articles