From 0132be5b71f3fe161b2fcda201c945d30bd8d1a5 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 1 Apr 2023 14:35:51 +0300 Subject: improve struct and union support in resolve --- src/debug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c index 6aa4283..b929876 100644 --- a/src/debug.c +++ b/src/debug.c @@ -198,10 +198,12 @@ static void _type_str(FILE *fp, struct ast_node *type) struct ast_node *impls = type->_type.struc.impls; if (impls) { - fprintf(fp, " ("); + fprintf(fp, "("); while (impls) { _type_str(fp, impls); impls = impls->next; + if (impls) + fprintf(fp, ", "); } fprintf(fp, ")"); } -- cgit v1.3