diff options
author | Joseph Eagar <joeedh@gmail.com> | 2009-09-12 17:27:26 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2009-09-12 17:27:26 +0400 |
commit | 3f9d3b2a0b61fee0b51b3b867033b5488c17cc35 (patch) | |
tree | cef1608327cac4bac0a47ea05a2566667b714132 /source/blender | |
parent | e271b033400c89d6f218a30043737b11785309c4 (diff) |
commit of mempool 64-bit fix for 2.5-er, trunk as well
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenlib/intern/BLI_mempool.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |