From e81b7b998a6218f524d5d6c41e98e07d1f5b10b4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 28 Feb 2025 19:30:40 -0500 Subject: [PATCH] Fix stringification of function type --- compile.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compile.c b/compile.c index b7b94ef..8ef7ab0 100644 --- a/compile.c +++ b/compile.c @@ -4219,9 +4219,8 @@ CORD compile_function(env_t *env, ast_t *ast, CORD *staticdefs) if (arg->next) text = CORD_cat(text, ", "); } if (ret_t && ret_t->tag != VoidType) - text = CORD_all(text, ")->", type_to_cord(ret_t)); - else - text = CORD_all(text, ")"); + text = CORD_all(text, "->", type_to_cord(ret_t)); + text = CORD_all(text, ")"); if (!fndef->is_inline) { env->code->function_naming = CORD_all(