From b903a5d9cec1ecfacf688778fbf5a2d2cf854f86 Mon Sep 17 00:00:00 2001 From: dzaima Date: Thu, 29 Dec 2022 23:31:12 +0200 Subject: [PATCH] =?UTF-8?q?fast=20num=E2=8A=91=CB=98simpleArr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/md1.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/builtins/md1.c b/src/builtins/md1.c index 786d5212..e9a7a03b 100644 --- a/src/builtins/md1.c +++ b/src/builtins/md1.c @@ -367,9 +367,8 @@ B cell_c2(Md1D* d, B w, B x) { B f = d->f; if (cam==0) return cell2_empty(f, w, x, wr, xr); if (isFun(f)) { u8 rtid = v(f)->flags-1; - if (rtid==n_select && isF64(w) && xr>1) { - return select_cells(WRAP(o2i64(w), SH(x)[1], thrF("āŠ: Indexing out-of-bounds (š•Øā‰”%R, %sā‰”ā‰ š•©)", w, cam)), x, xr); - } + if (rtid==n_select && isF64(w) && xr>1) return select_cells(WRAP(o2i64(w), SH(x)[1], thrF("āŠ: Indexing out-of-bounds (š•Øā‰”%R, %sā‰”ā‰ š•©)", w, cam)), x, xr); + if (rtid==n_pick && TI(x,arrD1) && xr>1 && isF64(w)) return select_cells(WRAP(o2i64(w), SH(x)[1], thrF("āŠ‘: Indexing out-of-bounds (š•Øā‰”%R, %sā‰”ā‰ š•©)", w, cam)), x, xr); if ((rtid==n_shifta || rtid==n_shiftb) && xr==2) { if (isArr(w)) { B w0=w; w = IGet(w,0); decG(w0); } return shift_cells(w, x, el_or(TI(x,elType), selfElType(w)), rtid);