Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2009-09-12 17:27:26 +0400
committerJoseph Eagar <joeedh@gmail.com>2009-09-12 17:27:26 +0400
commit3f9d3b2a0b61fee0b51b3b867033b5488c17cc35 (patch)
treecef1608327cac4bac0a47ea05a2566667b714132 /source
parente271b033400c89d6f218a30043737b11785309c4 (diff)
commit of mempool 64-bit fix for 2.5-er, trunk as well
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/intern/BLI_mempool.c5
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;