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>2013-08-21 06:29:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-21 06:29:13 +0400
commit89c7cf1a4938e8ae4008a9a9e1c90bac1a3f93c5 (patch)
treeb5d59042267099bf2723832e4b68b68451040c4c /source/blender/blenlib/intern/BLI_mempool.c
parent0b0540db3a7c08a1d28653dc8e601e119743e22b (diff)
style cleanup: also use ARRAY_HAS_ITEM macro for mempool check
Diffstat (limited to 'source/blender/blenlib/intern/BLI_mempool.c')
-rw-r--r--source/blender/blenlib/intern/BLI_mempool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/BLI_mempool.c b/source/blender/blenlib/intern/BLI_mempool.c
index ea63dd81ab2..9a371349a57 100644
--- a/source/blender/blenlib/intern/BLI_mempool.c
+++ b/source/blender/blenlib/intern/BLI_mempool.c
@@ -263,7 +263,7 @@ void BLI_mempool_free(BLI_mempool *pool, void *addr)
BLI_mempool_chunk *chunk;
bool found = false;
for (chunk = pool->chunks.first; chunk; chunk = chunk->next) {
- if ((char*)addr >= (char*)chunk->data && (char*)addr < (char*)chunk->data + pool->csize) {
+ if (ARRAY_HAS_ITEM((char *)addr, (char *)chunk->data, pool->csize)) {
found = true;
break;
}