From f2791392a30704dfb6d0cf019146a91d02e43a25 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 5 Aug 2023 19:36:16 -0500 Subject: [PATCH] Cleanup: Surround constant variable in a scoped block. --- level_0/f_memory/c/memory/private-array.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/level_0/f_memory/c/memory/private-array.c b/level_0/f_memory/c/memory/private-array.c index daf0d2f..6d0b7f6 100644 --- a/level_0/f_memory/c/memory/private-array.c +++ b/level_0/f_memory/c/memory/private-array.c @@ -9,8 +9,10 @@ extern "C" { #if !defined(_di_f_memory_array_adjust_) || !defined(_di_f_memory_array_decimate_by_) f_status_t private_f_memory_array_adjust(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) { - const f_status_t status = private_f_memory_adjust(*size, length, width, array); - if (F_status_is_error(status)) return status; + { + const f_status_t status = private_f_memory_adjust(*size, length, width, array); + if (F_status_is_error(status)) return status; + } *size = length; @@ -25,8 +27,10 @@ extern "C" { #if !defined(_di_f_memory_array_append_) || !defined(_di_f_memory_array_append_all_) || !defined(_di_f_memory_array_decrease_by_) || !defined(_di_f_memory_array_increase_) || !defined(_di_f_memory_array_increase_by_) || !defined(_di_f_memory_array_resize_) f_status_t private_f_memory_array_resize(const f_number_unsigned_t length, const size_t width, void ** array, f_number_unsigned_t * const used, f_number_unsigned_t * const size) { - const f_status_t status = private_f_memory_resize(*size, length, width, array); - if (F_status_is_error(status)) return status; + { + const f_status_t status = private_f_memory_resize(*size, length, width, array); + if (F_status_is_error(status)) return status; + } *size = length; -- 1.8.3.1