mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Address pull request comments
This commit is contained in:
parent
460355aac6
commit
243bab9761
2 changed files with 3 additions and 3 deletions
|
@ -77,7 +77,7 @@ typedef GSIMapNode_t *GSIMapNode;
|
|||
#define GSI_MAP_TABLE_S instanceSize
|
||||
|
||||
#define IS_WEAK(M) \
|
||||
memoryType(M->cb.pf.options, NSPointerFunctionsZeroingWeakMemory) | memoryType(M->cb.pf.options, NSPointerFunctionsWeakMemory)
|
||||
memoryType(M->cb.pf.options, NSPointerFunctionsZeroingWeakMemory) || memoryType(M->cb.pf.options, NSPointerFunctionsWeakMemory)
|
||||
#define GSI_MAP_HASH(M, X)\
|
||||
(M->legacy ? M->cb.old.hash(M, X.ptr) \
|
||||
: pointerFunctionsHash(&M->cb.pf, X.ptr))
|
||||
|
|
|
@ -78,12 +78,12 @@ typedef struct
|
|||
|
||||
inline static BOOL memoryType(int options, int flag)
|
||||
{
|
||||
return (options & 0xff) == flag;
|
||||
return ((options & 0xff) == flag) ? YES : NO;
|
||||
}
|
||||
|
||||
inline static BOOL personalityType(int options, int flag)
|
||||
{
|
||||
return (options & 0xff00) == flag;
|
||||
return ((options & 0xff00) == flag) ? YES : NO;
|
||||
}
|
||||
|
||||
/* Declare the concrete pointer functions class as a wrapper around
|
||||
|
|
Loading…
Reference in a new issue