]> Kevux Git Server - fll/commitdiff
Bugfix: Invalid '%lu', in formatted print, should instead be '%ul'.
authorKevin Day <thekevinday@gmail.com>
Sat, 26 Mar 2022 03:03:18 +0000 (22:03 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 26 Mar 2022 03:03:18 +0000 (22:03 -0500)
level_3/fss_embedded_list_read/c/private-read.c

index a0c4eee1866be17e1b455e8647c0fa31f1732abb..15552db2baf32d64ec1e15c61e84d83e5e6e33ab 100644 (file)
@@ -257,7 +257,7 @@ extern "C" {
         f_string_dynamic_resize(0, &main->buffer);
 
         if (main->parameters.array[fss_embedded_list_read_parameter_total_e].result == f_console_result_found_e) {
-          fll_print_format("0%r", main->output.to.stream, f_string_eol_s);
+          fll_print_format("%r%r", main->output.to.stream, f_string_ascii_0_s, f_string_eol_s);
 
           return F_none;
         }
@@ -505,7 +505,7 @@ extern "C" {
           ++total;
         } // for
 
-        fll_print_format("%lu%r", main->output.to.stream, total, f_string_eol_s);
+        fll_print_format("%ul%r", main->output.to.stream, total, f_string_eol_s);
 
         return F_none;
       }
@@ -576,7 +576,7 @@ extern "C" {
         } // for
       } // for
 
-      fll_print_format("%lu%r", main->output.to.stream, total, f_string_eol_s);
+      fll_print_format("%ul%r", main->output.to.stream, total, f_string_eol_s);
 
       return F_none;
     }
@@ -770,7 +770,7 @@ extern "C" {
 
           if (original_delimits[j] >= items->array[i].content.array[k].start && original_delimits[j] <= items->array[i].content.array[k].stop) {
 
-            // preserve linear order when adding back delimits.
+            // Preserve linear order when adding back delimits.
             if (delimits->used) {
               for (l = 0; l < delimits->used; ++l) {