mempool fix for 64-bit systems

This commit is contained in:
Joseph Eagar
2009-09-12 09:10:24 +00:00
parent a54a9d5d4e
commit 2601aa9cf3

View File

@@ -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;