diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-08 10:29:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-08 10:29:22 +0400 |
commit | c005fb407bbb7aac4cf138fbba903bbb2c821c93 (patch) | |
tree | a49185234ce1a01d26e8f1632e29323025322d17 /source/blender/blenlib/intern/BLI_mempool.c | |
parent | 8a9a060b673bb9b8c08967ccbd8009ca24cde4d1 (diff) |
Util-defines: avoid multiple calculation/access for MIN/MAX macros
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 28539d9ca34..c2b54023621 100644 --- a/source/blender/blenlib/intern/BLI_mempool.c +++ b/source/blender/blenlib/intern/BLI_mempool.c @@ -257,7 +257,7 @@ BLI_mempool *BLI_mempool_create(unsigned int esize, unsigned int totelem, } if (flag & BLI_MEMPOOL_ALLOW_ITER) { - pool->esize = MAX2(esize, (int)sizeof(BLI_freenode)); + pool->esize = MAX2(esize, (unsigned int)sizeof(BLI_freenode)); } else { pool->esize = esize; |