Bitmasking for introspection of Objective-C object pointers i
修改方法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))即可。
时间: 2024-10-15 02:46:34