We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 956eb5b commit db20d02Copy full SHA for db20d02
Source/ObjectiveC2/weak.m
@@ -34,14 +34,8 @@
34
* pointer (to the class of the object) then the object must be a
35
* special one of some sort and we assume it's persistent.
36
*/
37
-#if ALIGNOF_OBJC_OBJECT == 8
38
- if ((intptr_t)obj & 7)
39
- {
40
- return YES;
41
- }
42
-#endif
43
-#if ALIGNOF_OBJC_OBJECT == 4
44
- if ((intptr_t)obj & 3)
+#if ALIGNOF_OBJC_OBJECT > 1
+ if ((intptr_t)obj & (ALIGNOF_OBJC_OBJECT - 1))
45
{
46
return YES;
47
}
0 commit comments