commit of mempool 64-bit fix for 2.5-er, trunk as well

This commit is contained in:
2009-09-12 13:27:26 +00:00
parent e271b03340
commit 3f9d3b2a0b

View File

@@ -57,6 +57,9 @@ BLI_mempool *BLI_mempool_create(int esize, int tote, int pchunk)
int i,j, maxchunks; int i,j, maxchunks;
char *addr; char *addr;
if (esize < sizeof(void*))
esize = sizeof(void*);
/*allocate the pool structure*/ /*allocate the pool structure*/
pool = MEM_mallocN(sizeof(BLI_mempool),"memory pool"); pool = MEM_mallocN(sizeof(BLI_mempool),"memory pool");
pool->esize = esize; pool->esize = esize;