From aae8651e8b06d90a17681df4bff02342221aea3b Mon Sep 17 00:00:00 2001 From: dzaima Date: Sat, 29 Apr 2023 20:11:24 +0300 Subject: [PATCH] =?UTF-8?q?fix=20Arith=E2=8C=9C=20with=20empty=20?= =?UTF-8?q?=F0=9D=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/md1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtins/md1.c b/src/builtins/md1.c index e379c0ed..6856d841 100644 --- a/src/builtins/md1.c +++ b/src/builtins/md1.c @@ -77,7 +77,7 @@ B tbl_c2(Md1D* d, B w, B x) { B f = d->f; Arr* wd = arr_shVec(TI(w,slice)(incG(w), 0, wia)); r = fc2(f, C2(slash, m_i32(xia), taga(wd)), C2(shape, m_f64(ria), incG(x))); arr_shErase(a(r), 1); - } else if (xia>7) { + } else if (xia>7 && wia>0) { SGet(w) M_APD_TOT(rm, ria) incByG(x, wia);