From 3bace2e33a3826e76e9eac70cc8598136d81e7d3 Mon Sep 17 00:00:00 2001 From: dzaima Date: Mon, 20 Sep 2021 23:24:26 +0300 Subject: [PATCH] =?UTF-8?q?more=20=F0=9D=95=A8=E2=8D=8B=F0=9D=95=A9=20fall?= =?UTF-8?q?back?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/grade.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/builtins/grade.h b/src/builtins/grade.h index 129c72b6..ed611b6b 100644 --- a/src/builtins/grade.h +++ b/src/builtins/grade.h @@ -104,9 +104,9 @@ B GRADE_CAT(c2)(B t, B w, B x) { u8 fl = GRADE_UD(fl_asc,fl_dsc); - if (we==el_i32 & xe==el_i32) { - i32* wi = i32any_ptr(w); - i32* xi = i32any_ptr(x); + if (we<=el_i32 & xe<=el_i32) { + w = toI32Any(w); i32* wi = i32any_ptr(w); + x = toI32Any(x); i32* xi = i32any_ptr(x); if (CHECK_VALID && !FL_HAS(w,fl)) { for (i64 i = 0; i < (i64)wia-1; i++) if ((wi[i]-wi[i+1]) GRADE_UD(>,<) 0) thrM(GRADE_CHR": 𝕨 must be sorted"GRADE_UD(," in descending order")); FL_SET(w,fl);