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

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