Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Sep 28, 2024
1 parent 81b4bbf commit 7e4466a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/gen/c/cgen.v
Original file line number Diff line number Diff line change
Expand Up @@ -7348,7 +7348,7 @@ fn (mut g Gen) type_default(typ_ ast.Type) string {
mut has_none_zero := false
info := sym.info as ast.Struct
mut init_str := if (info.is_anon && !g.inside_global_decl)
|| g.pref.ccompiler_type == .tinyc {
|| (g.inside_global_decl && g.pref.ccompiler_type == .tinyc) {
'(${g.typ(typ)}){'
} else {
'{'
Expand Down

0 comments on commit 7e4466a

Please sign in to comment.