From: Kevin Day Date: Sat, 23 Nov 2024 01:54:07 +0000 (-0600) Subject: Bugfix: Do not treat out of range depth as an error. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;ds=inline;p=fll Bugfix: Do not treat out of range depth as an error. The FSS Embedded List Read should not treat out of range depth as an error. This simply should return no results. --- diff --git a/level_3/fss_read/c/embedded_list/process.c b/level_3/fss_read/c/embedded_list/process.c index 5ec425f..fe2213c 100644 --- a/level_3/fss_read/c/embedded_list/process.c +++ b/level_3/fss_read/c/embedded_list/process.c @@ -26,8 +26,6 @@ extern "C" { return; } - // @todo this now needs to handle this case: main->setting.feature & fss_read_feature_flag_depth_multiple_d and this case main->setting.flag & fss_read_main_flag_select_d. - if (main->setting.buffer.used) { main->setting.range.start = 0; main->setting.range.stop = main->setting.buffer.used; @@ -134,8 +132,9 @@ extern "C" { // Pre-process depths to confirm if any requested i is out of range. for (; i < main->setting.depths.used; ++i) { + // Out of range is not an error, there is simply nothing to print. if (main->setting.depths.array[i].depth >= main->setting.nest.used) { - main->setting.state.status = F_status_set_error(F_parameter); + main->setting.state.status = F_okay; return; }