Re: iOS datatype size change in 10.x SDK?
Re: iOS datatype size change in 10.x SDK?
- Subject: Re: iOS datatype size change in 10.x SDK?
- From: Jonas Maebe <email@hidden>
- Date: Tue, 07 Feb 2017 21:18:51 +0100
On 07/02/17 21:14, Carl Hoefs wrote:
When building for an iOS 9.x device using the iOS 9.x SDK, the datatypes long, size_t, and NSInteger have 4-byte representations[1]. But when building for an iOS 9.x device using the iOS 10.x SDK, the datatypes long, size_t, and NSInteger all have 8-byte representations!
* Datatype 9.x SDK 10.x SDK Notes
* ------------ ------- -------- ----------
* bool: 1 byte 1 byte
* int: 4 bytes 4 bytes
* long: 4 bytes 8 bytes <- changed
* long long: 8 bytes 8 bytes
* double: 8 bytes 8 bytes
* float: 4 bytes 4 bytes
* size_t: 4 bytes 8 bytes <- changed
* NSInteger: 4 bytes 8 bytes <- changed
Are there other datatypes that have changed? Are these changes documented anywhere?
This suggests you were previously compiling a 32 bit binary, and now a
64 bit one.
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden