fix compile error

This commit is contained in:
Joseph Eagar 2021-04-27 13:38:14 -07:00
parent 9e46eebcf1
commit 83a855a8a1
1 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ BLI_mempool *BLI_mempool_create_for_tasks(const unsigned int esize,
BLI_mempool_chunk **chunks = MEM_callocN(sizeof(void *) * pool->maxchunks,
"BLI_mempool_create_for_tasks r_chunks");
int totalloc = 0;
unsigned int totalloc = 0;
*r_totchunk = 0;
BLI_mempool_chunk *chunk = pool->chunks, *lastchunk = NULL;
@ -298,7 +298,7 @@ BLI_mempool *BLI_mempool_create_for_tasks(const unsigned int esize,
break;
}
i = pool->pchunk - 1;
i = (int)pool->pchunk - 1;
}
char *elem = CHUNK_DATA(lastchunk);