From 3f9d3b2a0b61fee0b51b3b867033b5488c17cc35 Mon Sep 17 00:00:00 2001 From: Joseph Eagar Date: Sat, 12 Sep 2009 13:27:26 +0000 Subject: [PATCH] commit of mempool 64-bit fix for 2.5-er, trunk as well --- source/blender/blenlib/intern/BLI_mempool.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/blender/blenlib/intern/BLI_mempool.c b/source/blender/blenlib/intern/BLI_mempool.c index 7ac7b8b1791..485ba7cbd08 100644 --- a/source/blender/blenlib/intern/BLI_mempool.c +++ b/source/blender/blenlib/intern/BLI_mempool.c @@ -56,7 +56,10 @@ BLI_mempool *BLI_mempool_create(int esize, int tote, int pchunk) BLI_freenode *lasttail = NULL, *curnode = NULL; int i,j, maxchunks; char *addr; - + + if (esize < sizeof(void*)) + esize = sizeof(void*); + /*allocate the pool structure*/ pool = MEM_mallocN(sizeof(BLI_mempool),"memory pool"); pool->esize = esize;