]> Kevux Git Server - fll/commitdiff
Bugfix: Do not treat out of range depth as an error. development
authorKevin Day <Kevin@kevux.org>
Sat, 23 Nov 2024 01:54:07 +0000 (19:54 -0600)
committerKevin Day <Kevin@kevux.org>
Sat, 23 Nov 2024 01:54:07 +0000 (19:54 -0600)
The FSS Embedded List Read should not treat out of range depth as an error.
This simply should return no results.

level_3/fss_read/c/embedded_list/process.c

index 5ec425f56191c2ed0e041a6adeec7cb8ad2ae533..fe2213c99fc7d849742697addcf9a5e402e16c6f 100644 (file)
@@ -26,8 +26,6 @@ extern "C" {
       return;
     }
 
       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;
     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) {
 
       // 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) {
         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;
         }
 
           return;
         }