mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Updates to latest TommyDS.
This commit is contained in:
parent
790e7dfa5e
commit
27faea95ed
2 changed files with 2 additions and 2 deletions
|
|
@ -65,7 +65,7 @@ void tommy_arrayblk_grow(tommy_arrayblk* array, tommy_count_t count)
|
|||
|
||||
/* allocate new blocks */
|
||||
while (block_mac < block_max) {
|
||||
void* ptr = tommy_calloc(TOMMY_ARRAYBLK_SIZE, sizeof(void*));
|
||||
void** ptr = tommy_calloc(TOMMY_ARRAYBLK_SIZE, sizeof(void*));
|
||||
|
||||
/* set the new block */
|
||||
tommy_array_set(&array->block, block_mac, ptr);
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ void tommy_arrayblkof_grow(tommy_arrayblkof* array, tommy_count_t count)
|
|||
|
||||
/* allocate new blocks */
|
||||
while (block_mac < block_max) {
|
||||
void* ptr = tommy_calloc(TOMMY_ARRAYBLK_SIZE, array->element_size);
|
||||
void** ptr = tommy_calloc(TOMMY_ARRAYBLK_SIZE, array->element_size);
|
||||
|
||||
/* set the new block */
|
||||
tommy_array_set(&array->block, block_mac, ptr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue