commit of mempool 64-bit fix for 2.5-er, trunk as well
This commit is contained in:
@@ -56,7 +56,10 @@ BLI_mempool *BLI_mempool_create(int esize, int tote, int pchunk)
|
|||||||
BLI_freenode *lasttail = NULL, *curnode = NULL;
|
BLI_freenode *lasttail = NULL, *curnode = NULL;
|
||||||
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user