From: Kevin Day Date: Fri, 15 Nov 2019 02:43:58 +0000 (-0600) Subject: Bugfix: f_overflow should be returned with error bit set X-Git-Tag: 0.5.0~391 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=4b023b79eddbc487ac4722e27a505fb7a293b35e;p=fll Bugfix: f_overflow should be returned with error bit set --- diff --git a/level_2/fll_fss/c/fss_basic.c b/level_2/fll_fss/c/fss_basic.c index 27ed63b..accd4e7 100644 --- a/level_2/fll_fss/c/fss_basic.c +++ b/level_2/fll_fss/c/fss_basic.c @@ -102,7 +102,7 @@ extern "C" { // If at least some valid object was found, then return f_none equivelents. if (objects->used > initial_used) { - if (status == f_no_data_on_eos) return f_none_on_eos; + if (status == f_no_data_on_eos) return f_none_on_eos; if (status == f_no_data_on_stop) return f_none_on_stop; } @@ -129,7 +129,7 @@ extern "C" { contents->used++; } while (input->start < f_string_max_size); - return f_overflow; + return f_status_is_error(f_overflow); } #endif // _di_fll_fss_basic_read_