Address pull request comments

This commit is contained in:
Fred Kiefer 2023-08-20 00:06:55 +02:00
parent 460355aac6
commit 243bab9761
2 changed files with 3 additions and 3 deletions

View file

@ -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))

View file

@ -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