mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Use alignment information properly
This commit is contained in:
parent
956eb5b303
commit
db20d02fc0
1 changed files with 2 additions and 8 deletions
|
@ -34,14 +34,8 @@ isPersistentObject(id obj)
|
||||||
* pointer (to the class of the object) then the object must be a
|
* pointer (to the class of the object) then the object must be a
|
||||||
* special one of some sort and we assume it's persistent.
|
* special one of some sort and we assume it's persistent.
|
||||||
*/
|
*/
|
||||||
#if ALIGNOF_OBJC_OBJECT == 8
|
#if ALIGNOF_OBJC_OBJECT > 1
|
||||||
if ((intptr_t)obj & 7)
|
if ((intptr_t)obj & (ALIGNOF_OBJC_OBJECT - 1))
|
||||||
{
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#if ALIGNOF_OBJC_OBJECT == 4
|
|
||||||
if ((intptr_t)obj & 3)
|
|
||||||
{
|
{
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue