Cleanup: avoid function call for pointer compare

This commit is contained in:
Campbell Barton 2019-01-05 19:55:25 +11:00
parent 57d4b869be
commit a2120001a8
2 changed files with 4 additions and 4 deletions

View File

@ -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));
}
/* ---------------------- */

View File

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