iOS datatype size change in 10.x SDK?
iOS datatype size change in 10.x SDK?
- Subject: iOS datatype size change in 10.x SDK?
- From: Carl Hoefs <email@hidden>
- Date: Tue, 07 Feb 2017 13:14:02 -0700
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?
-Carl
[1]: Using sizeof(long), etc, and run on the iPhone, not simulator.
_______________________________________________
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