From: Kevin Day Date: Sat, 22 Jul 2023 00:59:18 +0000 (-0500) Subject: Bugfix: Incorrect sizeof() values for numerous type array functions. X-Git-Tag: 0.6.7~20 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=8e658fc6be01504c7be97612b27297e1f4b97f64;p=fll Bugfix: Incorrect sizeof() values for numerous type array functions. The wrong sizeof types are being used. This is likely a copy and paste error. --- diff --git a/level_0/f_type_array/c/type_array/private-cell.c b/level_0/f_type_array/c/type_array/private-cell.c index 6ebe38c..0391022 100644 --- a/level_0/f_type_array/c/type_array/private-cell.c +++ b/level_0/f_type_array/c/type_array/private-cell.c @@ -77,7 +77,7 @@ extern "C" { for (f_array_length_t i = length; i < cellss->size; ++i) { - status = f_memory_destroy(cellss->array[i].size, sizeof(f_cells_t), (void **) & cellss->array[i].array); + status = f_memory_destroy(cellss->array[i].size, sizeof(f_cell_t), (void **) & cellss->array[i].array); if (F_status_is_error(status)) return status; cellss->array[i].size = 0; @@ -104,7 +104,7 @@ extern "C" { for (f_array_length_t i = length; i < cellss->size; ++i) { - status = f_memory_delete(cellss->array[i].size, sizeof(f_cells_t), (void **) & cellss->array[i].array); + status = f_memory_delete(cellss->array[i].size, sizeof(f_cell_t), (void **) & cellss->array[i].array); if (F_status_is_error(status)) return status; cellss->array[i].size = 0; diff --git a/level_0/f_type_array/c/type_array/private-fll_id.c b/level_0/f_type_array/c/type_array/private-fll_id.c index ee16a4a..efdee70 100644 --- a/level_0/f_type_array/c/type_array/private-fll_id.c +++ b/level_0/f_type_array/c/type_array/private-fll_id.c @@ -81,7 +81,7 @@ extern "C" { for (f_array_length_t i = length; i < idss->size; ++i) { - status = f_memory_destroy(idss->array[i].size, sizeof(f_fll_ids_t), (void **) & idss->array[i].array); + status = f_memory_destroy(idss->array[i].size, sizeof(f_fll_id_t), (void **) & idss->array[i].array); if (F_status_is_error(status)) return status; idss->array[i].size = 0; @@ -108,7 +108,7 @@ extern "C" { for (f_array_length_t i = length; i < idss->size; ++i) { - status = f_memory_delete(idss->array[i].size, sizeof(f_fll_ids_t), (void **) & idss->array[i].array); + status = f_memory_delete(idss->array[i].size, sizeof(f_fll_id_t), (void **) & idss->array[i].array); if (F_status_is_error(status)) return status; idss->array[i].size = 0; diff --git a/level_0/f_type_array/c/type_array/private-int128.c b/level_0/f_type_array/c/type_array/private-int128.c index d1be50c..3c2b73b 100644 --- a/level_0/f_type_array/c/type_array/private-int128.c +++ b/level_0/f_type_array/c/type_array/private-int128.c @@ -74,7 +74,7 @@ extern "C" { for (f_array_length_t i = length; i < int128ss->size; ++i) { - status = f_memory_destroy(int128ss->array[i].size, sizeof(f_int128s_t), (void **) & int128ss->array[i].array); + status = f_memory_destroy(int128ss->array[i].size, sizeof(int128_t), (void **) & int128ss->array[i].array); if (F_status_is_error(status)) return status; int128ss->array[i].size = 0; @@ -101,7 +101,7 @@ extern "C" { for (f_array_length_t i = length; i < int128ss->size; ++i) { - status = f_memory_delete(int128ss->array[i].size, sizeof(f_int128s_t), (void **) & int128ss->array[i].array); + status = f_memory_delete(int128ss->array[i].size, sizeof(int128_t), (void **) & int128ss->array[i].array); if (F_status_is_error(status)) return status; int128ss->array[i].size = 0; diff --git a/level_0/f_type_array/c/type_array/private-int16.c b/level_0/f_type_array/c/type_array/private-int16.c index 756e8aa..935be14 100644 --- a/level_0/f_type_array/c/type_array/private-int16.c +++ b/level_0/f_type_array/c/type_array/private-int16.c @@ -74,7 +74,7 @@ extern "C" { for (f_array_length_t i = length; i < int16ss->size; ++i) { - status = f_memory_destroy(int16ss->array[i].size, sizeof(f_int16s_t), (void **) & int16ss->array[i].array); + status = f_memory_destroy(int16ss->array[i].size, sizeof(int16_t), (void **) & int16ss->array[i].array); if (F_status_is_error(status)) return status; int16ss->array[i].size = 0; @@ -101,7 +101,7 @@ extern "C" { for (f_array_length_t i = length; i < int16ss->size; ++i) { - status = f_memory_delete(int16ss->array[i].size, sizeof(f_int16s_t), (void **) & int16ss->array[i].array); + status = f_memory_delete(int16ss->array[i].size, sizeof(int16_t), (void **) & int16ss->array[i].array); if (F_status_is_error(status)) return status; int16ss->array[i].size = 0; diff --git a/level_0/f_type_array/c/type_array/private-int32.c b/level_0/f_type_array/c/type_array/private-int32.c index b2010ea..46a7bf4 100644 --- a/level_0/f_type_array/c/type_array/private-int32.c +++ b/level_0/f_type_array/c/type_array/private-int32.c @@ -74,7 +74,7 @@ extern "C" { for (f_array_length_t i = length; i < int32ss->size; ++i) { - status = f_memory_destroy(int32ss->array[i].size, sizeof(f_int32s_t), (void **) & int32ss->array[i].array); + status = f_memory_destroy(int32ss->array[i].size, sizeof(int32_t), (void **) & int32ss->array[i].array); if (F_status_is_error(status)) return status; int32ss->array[i].size = 0; @@ -101,7 +101,7 @@ extern "C" { for (f_array_length_t i = length; i < int32ss->size; ++i) { - status = f_memory_delete(int32ss->array[i].size, sizeof(f_int32s_t), (void **) & int32ss->array[i].array); + status = f_memory_delete(int32ss->array[i].size, sizeof(int32_t), (void **) & int32ss->array[i].array); if (F_status_is_error(status)) return status; int32ss->array[i].size = 0; diff --git a/level_0/f_type_array/c/type_array/private-int64.c b/level_0/f_type_array/c/type_array/private-int64.c index f566daf..4ddf90f 100644 --- a/level_0/f_type_array/c/type_array/private-int64.c +++ b/level_0/f_type_array/c/type_array/private-int64.c @@ -74,7 +74,7 @@ extern "C" { for (f_array_length_t i = length; i < int64ss->size; ++i) { - status = f_memory_destroy(int64ss->array[i].size, sizeof(f_int64s_t), (void **) & int64ss->array[i].array); + status = f_memory_destroy(int64ss->array[i].size, sizeof(int64_t), (void **) & int64ss->array[i].array); if (F_status_is_error(status)) return status; int64ss->array[i].size = 0; @@ -101,7 +101,7 @@ extern "C" { for (f_array_length_t i = length; i < int64ss->size; ++i) { - status = f_memory_delete(int64ss->array[i].size, sizeof(f_int64s_t), (void **) & int64ss->array[i].array); + status = f_memory_delete(int64ss->array[i].size, sizeof(int64_t), (void **) & int64ss->array[i].array); if (F_status_is_error(status)) return status; int64ss->array[i].size = 0; diff --git a/level_0/f_type_array/c/type_array/private-int8.c b/level_0/f_type_array/c/type_array/private-int8.c index 35d5f34..2f766dc 100644 --- a/level_0/f_type_array/c/type_array/private-int8.c +++ b/level_0/f_type_array/c/type_array/private-int8.c @@ -81,7 +81,7 @@ extern "C" { int8ss->array[i].used = 0; } // for - status = f_memory_adjust(int8ss->size, length, sizeof(f_int8s_t), (void **) & int8ss->array); + status = f_memory_adjust(int8ss->size, length, sizeof(int8_t), (void **) & int8ss->array); if (F_status_is_error(status)) return status; int8ss->size = length; @@ -101,7 +101,7 @@ extern "C" { for (f_array_length_t i = length; i < int8ss->size; ++i) { - status = f_memory_delete(int8ss->array[i].size, sizeof(f_int8s_t), (void **) & int8ss->array[i].array); + status = f_memory_delete(int8ss->array[i].size, sizeof(int8_t), (void **) & int8ss->array[i].array); if (F_status_is_error(status)) return status; int8ss->array[i].size = 0; diff --git a/level_0/f_type_array/c/type_array/private-state.c b/level_0/f_type_array/c/type_array/private-state.c index 1ef6608..61fb2c3 100644 --- a/level_0/f_type_array/c/type_array/private-state.c +++ b/level_0/f_type_array/c/type_array/private-state.c @@ -91,7 +91,7 @@ extern "C" { for (f_array_length_t i = length; i < statess->size; ++i) { - status = f_memory_destroy(statess->array[i].size, sizeof(f_states_t), (void **) & statess->array[i].array); + status = f_memory_destroy(statess->array[i].size, sizeof(f_state_t), (void **) & statess->array[i].array); if (F_status_is_error(status)) return status; statess->array[i].size = 0; @@ -118,7 +118,7 @@ extern "C" { for (f_array_length_t i = length; i < statess->size; ++i) { - status = f_memory_delete(statess->array[i].size, sizeof(f_states_t), (void **) & statess->array[i].array); + status = f_memory_delete(statess->array[i].size, sizeof(f_state_t), (void **) & statess->array[i].array); if (F_status_is_error(status)) return status; statess->array[i].size = 0; diff --git a/level_0/f_type_array/c/type_array/private-status.c b/level_0/f_type_array/c/type_array/private-status.c index 584aee6..ef8fdb7 100644 --- a/level_0/f_type_array/c/type_array/private-status.c +++ b/level_0/f_type_array/c/type_array/private-status.c @@ -74,7 +74,7 @@ extern "C" { for (f_array_length_t i = length; i < statusss->size; ++i) { - status = f_memory_destroy(statusss->array[i].size, sizeof(f_statuss_t), (void **) & statusss->array[i].array); + status = f_memory_destroy(statusss->array[i].size, sizeof(f_status_t), (void **) & statusss->array[i].array); if (F_status_is_error(status)) return status; statusss->array[i].size = 0; @@ -101,7 +101,7 @@ extern "C" { for (f_array_length_t i = length; i < statusss->size; ++i) { - status = f_memory_delete(statusss->array[i].size, sizeof(f_statuss_t), (void **) & statusss->array[i].array); + status = f_memory_delete(statusss->array[i].size, sizeof(f_status_t), (void **) & statusss->array[i].array); if (F_status_is_error(status)) return status; statusss->array[i].size = 0; diff --git a/level_0/f_type_array/c/type_array/private-uint128.c b/level_0/f_type_array/c/type_array/private-uint128.c index 240aef9..b860b50 100644 --- a/level_0/f_type_array/c/type_array/private-uint128.c +++ b/level_0/f_type_array/c/type_array/private-uint128.c @@ -74,7 +74,7 @@ extern "C" { for (f_array_length_t i = length; i < uint128ss->size; ++i) { - status = f_memory_destroy(uint128ss->array[i].size, sizeof(f_uint128s_t), (void **) & uint128ss->array[i].array); + status = f_memory_destroy(uint128ss->array[i].size, sizeof(uint128_t), (void **) & uint128ss->array[i].array); if (F_status_is_error(status)) return status; uint128ss->array[i].size = 0; @@ -101,7 +101,7 @@ extern "C" { for (f_array_length_t i = length; i < uint128ss->size; ++i) { - status = f_memory_delete(uint128ss->array[i].size, sizeof(f_uint128s_t), (void **) & uint128ss->array[i].array); + status = f_memory_delete(uint128ss->array[i].size, sizeof(uint128_t), (void **) & uint128ss->array[i].array); if (F_status_is_error(status)) return status; uint128ss->array[i].size = 0; diff --git a/level_0/f_type_array/c/type_array/private-uint16.c b/level_0/f_type_array/c/type_array/private-uint16.c index 1a23e30..a5044ec 100644 --- a/level_0/f_type_array/c/type_array/private-uint16.c +++ b/level_0/f_type_array/c/type_array/private-uint16.c @@ -74,7 +74,7 @@ extern "C" { for (f_array_length_t i = length; i < uint16ss->size; ++i) { - status = f_memory_destroy(uint16ss->array[i].size, sizeof(f_uint16s_t), (void **) & uint16ss->array[i].array); + status = f_memory_destroy(uint16ss->array[i].size, sizeof(uint16_t), (void **) & uint16ss->array[i].array); if (F_status_is_error(status)) return status; uint16ss->array[i].size = 0; @@ -101,7 +101,7 @@ extern "C" { for (f_array_length_t i = length; i < uint16ss->size; ++i) { - status = f_memory_delete(uint16ss->array[i].size, sizeof(f_uint16s_t), (void **) & uint16ss->array[i].array); + status = f_memory_delete(uint16ss->array[i].size, sizeof(uint16_t), (void **) & uint16ss->array[i].array); if (F_status_is_error(status)) return status; uint16ss->array[i].size = 0; diff --git a/level_0/f_type_array/c/type_array/private-uint32.c b/level_0/f_type_array/c/type_array/private-uint32.c index 1dbf3da..36d94ae 100644 --- a/level_0/f_type_array/c/type_array/private-uint32.c +++ b/level_0/f_type_array/c/type_array/private-uint32.c @@ -74,7 +74,7 @@ extern "C" { for (f_array_length_t i = length; i < uint32ss->size; ++i) { - status = f_memory_destroy(uint32ss->array[i].size, sizeof(f_uint32s_t), (void **) & uint32ss->array[i].array); + status = f_memory_destroy(uint32ss->array[i].size, sizeof(uint32_t), (void **) & uint32ss->array[i].array); if (F_status_is_error(status)) return status; uint32ss->array[i].size = 0; @@ -101,7 +101,7 @@ extern "C" { for (f_array_length_t i = length; i < uint32ss->size; ++i) { - status = f_memory_delete(uint32ss->array[i].size, sizeof(f_uint32s_t), (void **) & uint32ss->array[i].array); + status = f_memory_delete(uint32ss->array[i].size, sizeof(uint32_t), (void **) & uint32ss->array[i].array); if (F_status_is_error(status)) return status; uint32ss->array[i].size = 0; diff --git a/level_0/f_type_array/c/type_array/private-uint64.c b/level_0/f_type_array/c/type_array/private-uint64.c index a7f238d..56356be 100644 --- a/level_0/f_type_array/c/type_array/private-uint64.c +++ b/level_0/f_type_array/c/type_array/private-uint64.c @@ -74,7 +74,7 @@ extern "C" { for (f_array_length_t i = length; i < uint64ss->size; ++i) { - status = f_memory_destroy(uint64ss->array[i].size, sizeof(f_uint64s_t), (void **) & uint64ss->array[i].array); + status = f_memory_destroy(uint64ss->array[i].size, sizeof(uint64_t), (void **) & uint64ss->array[i].array); if (F_status_is_error(status)) return status; uint64ss->array[i].size = 0; @@ -101,7 +101,7 @@ extern "C" { for (f_array_length_t i = length; i < uint64ss->size; ++i) { - status = f_memory_delete(uint64ss->array[i].size, sizeof(f_uint64s_t), (void **) & uint64ss->array[i].array); + status = f_memory_delete(uint64ss->array[i].size, sizeof(uint64_t), (void **) & uint64ss->array[i].array); if (F_status_is_error(status)) return status; uint64ss->array[i].size = 0; diff --git a/level_0/f_type_array/c/type_array/private-uint8.c b/level_0/f_type_array/c/type_array/private-uint8.c index 4475b09..74a4945 100644 --- a/level_0/f_type_array/c/type_array/private-uint8.c +++ b/level_0/f_type_array/c/type_array/private-uint8.c @@ -74,7 +74,7 @@ extern "C" { for (f_array_length_t i = length; i < uint8ss->size; ++i) { - status = f_memory_destroy(uint8ss->array[i].size, sizeof(f_uint8s_t), (void **) & uint8ss->array[i].array); + status = f_memory_destroy(uint8ss->array[i].size, sizeof(uint8_t), (void **) & uint8ss->array[i].array); if (F_status_is_error(status)) return status; uint8ss->array[i].size = 0; @@ -101,7 +101,7 @@ extern "C" { for (f_array_length_t i = length; i < uint8ss->size; ++i) { - status = f_memory_delete(uint8ss->array[i].size, sizeof(f_uint8s_t), (void **) & uint8ss->array[i].array); + status = f_memory_delete(uint8ss->array[i].size, sizeof(uint8_t), (void **) & uint8ss->array[i].array); if (F_status_is_error(status)) return status; uint8ss->array[i].size = 0;