From: Jérémie Astor Date: Thu, 3 Jun 2021 11:13:00 +0000 (+0200) Subject: :art: Fix func default arguments X-Git-Tag: nightly~610 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=255279d5826284974ffc80031baf534f31af22cf;p=gwion.git :art: Fix func default arguments --- diff --git a/src/parse/scan0.c b/src/parse/scan0.c index 10088934..21958549 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -426,7 +426,8 @@ ANN static Ast scan0_func_def_default(const MemPool p, const Ast ast, const Ast former = base_arg; base_arg = base_arg->next; } - return ast->next = next; + ast->next = next; + return ast; } #define scan0_func_def dummy_func