From 68af7bccf6e482cb0a5f641c5a7481ae822ad2ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sat, 9 May 2020 18:40:30 +0200 Subject: [PATCH] :bug: Fix ast cleaning scoping --- src/clean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clean.c b/src/clean.c index e1e58107..19bb6d91 100644 --- a/src/clean.c +++ b/src/clean.c @@ -276,8 +276,8 @@ ANN static void clean_func_base(Clean *a, Func_Base *b) { } ANN static void clean_func_def(Clean *a, Func_Def b) { - ++a->scope; clean_func_base(a, b->base); + ++a->scope; if(b->d.code && !GET_FLAG(b, builtin)) clean_stmt(a, b->d.code); --a->scope; -- 2.43.0