]> Kevux Git Server - fll/commitdiff
Cleanup: Add comment to help clarify the size * 2 logic.
authorKevin Day <thekevinday@gmail.com>
Wed, 30 Aug 2023 01:54:32 +0000 (20:54 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 30 Aug 2023 01:54:32 +0000 (20:54 -0500)
This will comment should help future proof accidental incorrect changes to this value.

level_2/fll_execute/c/execute.c

index 5fb1d716b3e46982e8a50870990b786ed9452d5e..bc7c5e9085cdf33c80ba2a5c3d831a14fb452d1e 100644 (file)
@@ -48,6 +48,7 @@ extern "C" {
     #endif // _di_level_2_parameter_checking_
 
     {
+      // Allocate "size * 2" to ensure space for both th name and value are available.
       f_status_t status = f_memory_array_increase_by(size * 2, sizeof(f_string_dynamic_t), (void **) &arguments->array, &arguments->used, &arguments->size);
 
       for (f_number_unsigned_t i = 0; i < size; ++i) {