From 255279d5826284974ffc80031baf534f31af22cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 3 Jun 2021 13:13:00 +0200 Subject: [PATCH] :art: Fix func default arguments --- src/parse/scan0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.43.0