From: Kevin Day Date: Sun, 5 Jul 2020 22:30:19 +0000 (-0500) Subject: Cleanup: change order of variables. X-Git-Tag: 0.5.0~109 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=065094538372550dbe195cce9c4d025a07b17db0;p=fll Cleanup: change order of variables. --- diff --git a/level_0/f_print/c/print.c b/level_0/f_print/c/print.c index 7b9a8f5..2bb3a58 100644 --- a/level_0/f_print/c/print.c +++ b/level_0/f_print/c/print.c @@ -49,7 +49,7 @@ extern "C" { f_return_status f_print_string_dynamic_partial(FILE *output, const f_string_static buffer, const f_string_range range) { #ifndef _di_level_0_parameter_checking_ if (range.start < 0) return F_status_set_error(F_parameter); - if (range.stop < range.start) return F_status_set_error(F_parameter); + if (range.start > range.stop) return F_status_set_error(F_parameter); if (buffer.used <= 0) return F_status_set_error(F_parameter); if (range.start >= buffer.used) return F_status_set_error(F_parameter); if (range.stop >= buffer.used) return F_status_set_error(F_parameter);