Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-01-05 11:55:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-05 11:56:15 +0300
commita2120001a876518061b52d63362733ebedaedd47 (patch)
tree6af9253d2b0d15402679294ba074e39849418e88 /source/blender/blenlib/intern/BLI_ghash_utils.c
parent57d4b869be387767be51fe1f9d819904c342d692 (diff)
Cleanup: avoid function call for pointer compare
Diffstat (limited to 'source/blender/blenlib/intern/BLI_ghash_utils.c')
-rw-r--r--source/blender/blenlib/intern/BLI_ghash_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/BLI_ghash_utils.c b/source/blender/blenlib/intern/BLI_ghash_utils.c
index a0d9fefe465..053f177939c 100644
--- a/source/blender/blenlib/intern/BLI_ghash_utils.c
+++ b/source/blender/blenlib/intern/BLI_ghash_utils.c
@@ -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)