For 32-bit BOOL is a signed char, whereas under 64-bit it is a bool.
Posted zzfx
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了For 32-bit BOOL is a signed char, whereas under 64-bit it is a bool.相关的知识,希望对你有一定的参考价值。
https://stackoverflow.com/questions/31267325/bool-with-64-bit-on-ios/31270249#31270249
Definition of BOOL from objc.h
:
/// Type to represent a boolean value.
#if (TARGET_OS_IPHONE && __LP64__) || TARGET_OS_WATCH
#define OBJC_BOOL_IS_BOOL 1
typedef bool BOOL;
#else
#define OBJC_BOOL_IS_CHAR 1
typedef signed char BOOL;
// BOOL is explicitly signed so @encode(BOOL) == "c" rather than "C"
// even if -funsigned-char is used.
#endif
以上是关于For 32-bit BOOL is a signed char, whereas under 64-bit it is a bool.的主要内容,如果未能解决你的问题,请参考以下文章
3 Ways to Learn Whether a Windows Program is 64-bit or 32-bit
the virtual machine is configured for 64-bit guest operating systems
更新xcode8后真机调试报code signing is required for product type 'xxxxx' in SDK 'iOS 10.0'(示例
关于iOS10 Xcode8真机测试项目出现的问题 "code signing is required for product type 'xxxxx' in SDK
关于iOS10 Xcode8真机测试项目出现的问题 "code signing is required for product type 'xxxxx' in SDK
Sign around us. With more rules existing,signs are becoming common to everybody. It is easy for