From dbf246810c2b53e4ce5f411a0cbac2a8899c06bf Mon Sep 17 00:00:00 2001 From: dzaima Date: Wed, 30 Jun 2021 23:20:35 +0300 Subject: [PATCH] =?UTF-8?q?fix=20=E2=9F=A8=E2=9F=A9=20[=E2=8D=8B=E2=8D=92]?= =?UTF-8?q?=20=E2=86=954?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/grade.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtins/grade.h b/src/builtins/grade.h index a0f9ff38..6416bb1e 100644 --- a/src/builtins/grade.h +++ b/src/builtins/grade.h @@ -87,7 +87,7 @@ B GRADE_CAT(c2)(B t, B w, B x) { if (we==el_i32 & xe==el_i32) { i32* wi = i32any_ptr(w); i32* xi = i32any_ptr(x); - if (CHECK_VALID) for (usz 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")); + if (CHECK_VALID) 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")); for (usz i = 0; i < xia; i++) { i32 c = xi[i]; @@ -102,7 +102,7 @@ B GRADE_CAT(c2)(B t, B w, B x) { } else { BS2B wgetU = TI(w).getU; BS2B xgetU = TI(x).getU; - if (CHECK_VALID) for (usz i = 0; i < wia-1; i++) if (compare(wgetU(w,i), wgetU(w,i+1)) GRADE_UD(>,<) 0) thrM(GRADE_CHR": 𝕨 must be sorted"GRADE_UD(," in descending order")); + if (CHECK_VALID) for (i64 i = 0; i < (i64)wia-1; i++) if (compare(wgetU(w,i), wgetU(w,i+1)) GRADE_UD(>,<) 0) thrM(GRADE_CHR": 𝕨 must be sorted"GRADE_UD(," in descending order")); for (usz i = 0; i < xia; i++) { B c = xgetU(x,i);