From 3870189f85e38478a6e0d3101f677dd5744ec721 Mon Sep 17 00:00:00 2001 From: dzaima Date: Thu, 4 Apr 2024 03:47:36 +0300 Subject: [PATCH] =?UTF-8?q?fix=203=E2=80=BF3=E2=8D=92"a"=20&=20"aa"?= =?UTF-8?q?=E2=8D=923=E2=80=BF3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/grade.h | 15 +++++++++------ test/cases/prims.bqn | 2 ++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/builtins/grade.h b/src/builtins/grade.h index 7890d80d..605c50cd 100644 --- a/src/builtins/grade.h +++ b/src/builtins/grade.h @@ -416,7 +416,10 @@ B GRADE_CAT(c2)(B t, B w, B x) { B r; Arr* ra; - if (wia==0 | xia==0) goto zeroes_done; + if (wia==0 | xia==0) { + ra = allZeroes(xia); + goto copysh_done; + } if (wia==1) { B c = IGet(w, 0); if (LIKELY(we