user3119633
user3119633

Reputation: 23

Convert iOS app to 64 bit architecture getting error and warnings

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..

  1. cast from pointer to smaller type int loses information..

    r14 = (int)((byte*)type - (int)mem_ds);
    
  2. many same warnings: Implicit conversion loses integer precision: 'long long' to 'int'

You can see it in screen shot:

This is my screen shot having error

Upvotes: 0

Views: 156

Answers (1)

Jean-Baptiste Yunès
Jean-Baptiste Yunès

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

Related Questions