diff --git a/tommyds/tommyarrayblk.c b/tommyds/tommyarrayblk.c index 623fe920..d4dda763 100644 --- a/tommyds/tommyarrayblk.c +++ b/tommyds/tommyarrayblk.c @@ -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_cast(void**, tommy_calloc(TOMMY_ARRAYBLK_SIZE, sizeof(void*))); /* set the new block */ tommy_array_set(&array->block, block_mac, ptr); diff --git a/tommyds/tommyarrayblkof.c b/tommyds/tommyarrayblkof.c index 59d87c73..7d3275d6 100644 --- a/tommyds/tommyarrayblkof.c +++ b/tommyds/tommyarrayblkof.c @@ -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_cast(void**, tommy_calloc(TOMMY_ARRAYBLK_SIZE, array->element_size)); /* set the new block */ tommy_array_set(&array->block, block_mac, ptr);