From ead637b135e895c8d099ef28d6d577f04e57b1f2 Mon Sep 17 00:00:00 2001 From: dzaima Date: Sat, 4 Mar 2023 18:58:01 +0200 Subject: [PATCH] don't leak c1fn/c2fn arguments from array function --- src/core/stuff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/stuff.c b/src/core/stuff.c index c948b1ad..e49723e4 100644 --- a/src/core/stuff.c +++ b/src/core/stuff.c @@ -56,8 +56,8 @@ NOINLINE B m2c2_bad(Md2D* d, B w, B x) { thrM("This 2-modifier can't be called d NOINLINE B md_c1(B t, B x) { thrM("Cannot call a modifier"); } NOINLINE B md_c2(B t, B w, B x) { thrM("Cannot call a modifier"); } -NOINLINE B arr_c1(B t, B x) { return inc(t); } -NOINLINE B arr_c2(B t, B w, B x) { return inc(t); } +NOINLINE B arr_c1(B t, B x) { dec(x); return inc(t); } +NOINLINE B arr_c2(B t, B w, B x) { dec(w); dec(x); return inc(t); } extern B rt_under, bi_before;