diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-31 01:32:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-31 01:32:57 +0400 |
commit | b8547074e18e7645bdfc3e032508f80877592034 (patch) | |
tree | 9859220869b0a8cfd63660b26e1a4a37bb87d226 /source/blender/blenlib/BLI_mempool.h | |
parent | 427317d8d84345637738d4e4ed60cfd55f1bb595 (diff) |
mempool internal change, use unsigned ints where possible (less overhead),
also quiet compiler warning for BLI_LINKSTACK_FREE macro.
Diffstat (limited to 'source/blender/blenlib/BLI_mempool.h')
-rw-r--r-- | source/blender/blenlib/BLI_mempool.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_mempool.h b/source/blender/blenlib/BLI_mempool.h index 147acdc6d97..153a3735182 100644 --- a/source/blender/blenlib/BLI_mempool.h +++ b/source/blender/blenlib/BLI_mempool.h @@ -48,7 +48,8 @@ typedef struct BLI_mempool BLI_mempool; * first four bytes of the elements never contain the character string * 'free'. use with care.*/ -BLI_mempool *BLI_mempool_create(int esize, int totelem, int pchunk, int flag) +BLI_mempool *BLI_mempool_create(unsigned int esize, unsigned int totelem, + unsigned int pchunk, unsigned int flag) #ifdef __GNUC__ __attribute__((malloc)) __attribute__((warn_unused_result)) @@ -94,7 +95,7 @@ int BLI_mempool_count(BLI_mempool *pool) __attribute__((nonnull(1))) #endif ; -void *BLI_mempool_findelem(BLI_mempool *pool, int index) +void *BLI_mempool_findelem(BLI_mempool *pool, unsigned int index) #ifdef __GNUC__ __attribute__((warn_unused_result)) __attribute__((nonnull(1))) @@ -133,7 +134,7 @@ __attribute__((nonnull(1, 2))) typedef struct BLI_mempool_iter { BLI_mempool *pool; struct BLI_mempool_chunk *curchunk; - int curindex; + unsigned int curindex; } BLI_mempool_iter; /* flag */ |