From: Jérémie Astor Date: Sat, 9 May 2020 16:40:30 +0000 (+0200) Subject: :bug: Fix ast cleaning scoping X-Git-Tag: nightly~1621 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=68af7bccf6e482cb0a5f641c5a7481ae822ad2ab;p=gwion.git :bug: Fix ast cleaning scoping --- 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;