From d66e924a2d8b7e749a59c66e8d74414f06d5f347 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 29 Sep 2024 14:53:37 -0300 Subject: [PATCH] fix --- vlib/v/gen/c/cgen.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index cfb93f6e490ae8..20b2fe40c9aae0 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -7347,7 +7347,7 @@ fn (mut g Gen) type_default(typ_ ast.Type) string { .struct_ { mut has_none_zero := false info := sym.info as ast.Struct - mut init_str := if (info.is_anon && !g.inside_global_decl) { + mut init_str := if info.is_anon && !g.inside_global_decl { '(${g.typ(typ)}){' } else { '{'