From 1ff8954dd3d86c1c64d15f4b7589d14a37502c14 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Thu, 18 May 2023 10:33:00 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20leak=20in=20dyadic=20=E2=80=A2=5Ftimed?= 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 3144d58f..40fed4b8 100644 --- a/src/builtins/md1.c +++ b/src/builtins/md1.c @@ -136,7 +136,7 @@ B swap_c2(Md1D* d, B w, B x) { return c2(d->f, x , w); } B timed_c2(Md1D* d, B w, B x) { B f = d->f; i64 am = o2i64(w); if (am<=0) thrM("•_timed: 𝕨 must be an integer greater than 1"); - incBy(x, am); + incBy(x, am-1); FC1 fc1 = c1fn(f); u64 sns = nsTime(); for (i64 i = 0; i < am; i++) dec(fc1(f, x));