Reputation: 23
I have developed iOS app. It is working fine on 32 bit devices, but App Store needs to support 64 bit compulsory. so I have added arm64 to architecture, and I'm getting type citing error..
cast from pointer to smaller type int loses information..
r14 = (int)((byte*)type - (int)mem_ds);
many same warnings: Implicit conversion loses integer precision: 'long long' to 'int'
You can see it in screen shot:
Upvotes: 0
Views: 156
Reputation: 36401
As said in the doc (see 64-Bit Transition Guide for Cocoa Touch) use the special uintptr_t
type to avoid truncation.
Upvotes: 1