mempool fix for 64-bit systems
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user