Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed May 15, 2024
1 parent 9639f55 commit 2bf8173
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 @@ -7126,7 +7126,7 @@ fn (mut g Gen) type_default(typ_ ast.Type) string {
} else {
'{'
}
if sym.language == .v {
if sym.language in [.c, .v] {
for field in info.fields {
field_sym := g.table.sym(field.typ)
if field.has_default_expr
Expand Down

0 comments on commit 2bf8173

Please sign in to comment.