From 63e5e843bae1817bc82b8807f596176be4a44d04 Mon Sep 17 00:00:00 2001 From: dzaima Date: Sat, 3 Dec 2022 23:14:13 +0200 Subject: [PATCH] =?UTF-8?q?fix=20f64arr/=F0=9D=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `slow:` uses `s`, but the goto went to it before `s` was initialized --- src/builtins/slash.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/builtins/slash.c b/src/builtins/slash.c index 0f5a1bc0..1c302148 100644 --- a/src/builtins/slash.c +++ b/src/builtins/slash.c @@ -733,10 +733,14 @@ B slash_c2(B t, B w, B x) { if (wv < 0) { // Array w if (RARE(wia!=xlen)) thrF("/: Lengths of components of 𝕨 must match 𝕩 (%s ≠ %s)", wia, xlen); + u64 s; u8 we = TI(w,elType); if (!elInt(we)) { w=any_squeeze(w); we=TI(w,elType); - if (!elInt(we)) goto slow; + if (!elInt(we)) { + s = usum(w); + goto slow; + } } if (we==el_bit) { wbool: @@ -744,7 +748,7 @@ B slash_c2(B t, B w, B x) { goto decWX_ret; } if (xl>6 || (xl<3 && xl!=0)) goto base; - u64 s = usum(w); + s = usum(w); if (s<=wia) { w=num_squeezeChk(w); we=TI(w,elType); if (we==el_bit) goto wbool;