From: Kevin Day Date: Fri, 7 Mar 2025 06:20:48 +0000 (-0600) Subject: Bugfix: Static build is not working, 'rcs' is not being appended. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=2434b4ea34767f1519320106df1e618dee389469;p=fll Bugfix: Static build is not working, 'rcs' is not being appended. I overlooked a case where the counter is not reset at the start of the loop. I did some additional reviews of similar cases in the code and applied similar fixes. --- diff --git a/level_3/fake/c/main/build/library.c b/level_3/fake/c/main/build/library.c index 23e370d..9cc0646 100644 --- a/level_3/fake/c/main/build/library.c +++ b/level_3/fake/c/main/build/library.c @@ -457,7 +457,7 @@ extern "C" { } // for } - for (; i < data_build->setting.build_indexer_arguments.used; ++i) { + for (i = 0; i < data_build->setting.build_indexer_arguments.used; ++i) { if (!data_build->setting.build_indexer_arguments.array[i].used) continue; diff --git a/level_3/fake/c/main/build/load.c b/level_3/fake/c/main/build/load.c index 23669ac..af86831 100644 --- a/level_3/fake/c/main/build/load.c +++ b/level_3/fake/c/main/build/load.c @@ -83,10 +83,8 @@ extern "C" { modes_custom.array = modes_custom_array; if (build_arguments) { - f_number_unsigned_t i = 0; - if (build_arguments->used > 1) { - for (; i < modes_custom.used; ++i) { + for (f_number_unsigned_t i = 0; i < modes_custom.used; ++i) { modes_custom.array[i] = build_arguments->array[i + 1]; } // for } @@ -165,14 +163,13 @@ extern "C" { } f_memory_array_resize(0, sizeof(f_char_t), (void **) &buffer.string, &buffer.used, &buffer.size); - f_memory_array_resize(0, sizeof(f_range_t), (void **) &objects.array, &objects.used, &objects.size); f_memory_arrays_resize(0, sizeof(f_ranges_t), (void **) &contents.array, &contents.used, &contents.size, &f_rangess_delete_callback); } // Error when required settings are not specified. if (F_status_is_error_not(main->setting.state.status)) { - bool failed = F_false; + uint8_t failed = F_false; f_string_static_t * const settings[] = { &setting->build_name,