Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed May 4, 2024
1 parent 4acb833 commit 168122c
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 @@ -4901,7 +4901,7 @@ fn (mut g Gen) ident(node ast.Ident) {
g.write(g.get_ternary_name(name))
if is_auto_heap {
g.write('))')
if is_option {
if is_option && node.or_expr.kind != .absent {
g.write('.data')
}
}
Expand Down

0 comments on commit 168122c

Please sign in to comment.