标签:spec exp bit com family word UI bool osx
修改方法1:
#pragma clang diagnostic push
#pragma clang diagnostic ignored"-Wdeprecated-objc-pointer-introspection"
BOOL workAroundMacOSXABIBreakingBug = (JK_EXPECT_F(((NSUInteger)object) &0x1)) ? YES : NO;
#pragma clang diagnostic pop
修改方法2:
"某数字" & 0x1 的时候, 代表取最低位,改成if(JK_EXPECT_F(((NSUInteger)object)%2))即可。
Bitmasking for introspection of Objective-C object pointers i
标签:spec exp bit com family word UI bool osx
原文地址:http://www.cnblogs.com/zyingn/p/Error_bitmasking.html