diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-21 06:29:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-21 06:29:13 +0400 |
commit | 89c7cf1a4938e8ae4008a9a9e1c90bac1a3f93c5 (patch) | |
tree | b5d59042267099bf2723832e4b68b68451040c4c /source/blender/blenlib/intern/BLI_mempool.c | |
parent | 0b0540db3a7c08a1d28653dc8e601e119743e22b (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.c | 2 |
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; } |