Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

Is this important?

like image 671
Zoltan Vinkler Avatar asked Mar 20 '23 06:03

Zoltan Vinkler


2 Answers

You can make the following change manually until the next CocoaPod release (the change is already in GitHub).

change:

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

to:

[decoder decodeIntegerForKey:NSStringFromSelector(@selector(totalBytesRead))];
like image 80
JimJty Avatar answered Apr 02 '23 12:04

JimJty


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.

See a this: ConvertingYourAppto-64Bit

if you don't want more warning. you can must change to architecture in Xcode 5.1 enter image description here]![enter image description hereenter image description here

like image 45
bitmapdata.com Avatar answered Apr 02 '23 11:04

bitmapdata.com