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
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2009-09-12 13:10:24 +0400
committerJoseph Eagar <joeedh@gmail.com>2009-09-12 13:10:24 +0400
commit2601aa9cf37bed73b2808536f05506f367d87952 (patch)
treeebecc4d4e2140b1dc03f94cfe2205a567742addb /source/blender
parenta54a9d5d4e2d06a95e4f1ca01fc0857d2bef6602 (diff)
mempool fix for 64-bit systems
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenlib/intern/BLI_mempool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/BLI_mempool.c b/source/blender/blenlib/intern/BLI_mempool.c
index c553e95ff44..13bed6122bf 100644
--- a/source/blender/blenlib/intern/BLI_mempool.c
+++ b/source/blender/blenlib/intern/BLI_mempool.c
@@ -62,6 +62,9 @@ BLI_mempool *BLI_mempool_create(int esize, int tote, int pchunk)
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;