Cleanup: avoid function call for pointer compare
This commit is contained in:
parent
57d4b869be
commit
a2120001a8
|
@ -2054,8 +2054,8 @@ static bool nlaevalchan_keycmp(const void *a, const void *b)
|
|||
const NlaEvalChannelKey *A = a;
|
||||
const NlaEvalChannelKey *B = b;
|
||||
|
||||
return (BLI_ghashutil_ptrcmp(A->ptr.data, B->ptr.data) ||
|
||||
BLI_ghashutil_ptrcmp(A->prop, B->prop));
|
||||
return ((A->ptr.data != B->ptr.data) ||
|
||||
(A->prop != B->prop));
|
||||
}
|
||||
|
||||
/* ---------------------- */
|
||||
|
|
|
@ -203,8 +203,8 @@ bool BLI_ghashutil_paircmp(const void *a, const void *b)
|
|||
const GHashPair *A = a;
|
||||
const GHashPair *B = b;
|
||||
|
||||
return (BLI_ghashutil_ptrcmp(A->first, B->first) ||
|
||||
BLI_ghashutil_ptrcmp(A->second, B->second));
|
||||
return ((A->first != B->first) ||
|
||||
(A->second != B->second));
|
||||
}
|
||||
|
||||
void BLI_ghashutil_pairfree(void *ptr)
|
||||
|
|
Loading…
Reference in New Issue