Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 6, 2025
1 parent c9a7b2f commit 057fa2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vlib/v/gen/c/cgen.v
Original file line number Diff line number Diff line change
Expand Up @@ -4155,7 +4155,6 @@ fn (mut g Gen) selector_expr(node ast.SelectorExpr) {
g.write_selector_expr_embed_name(node, node.from_embed_types)
}
}
left_is_shared := node.expr_type.has_flag(.shared_f)
alias_to_ptr := sym.info is ast.Alias && sym.info.parent_type.is_ptr()
is_dereferenced := node.expr is ast.SelectorExpr && node.expr.expr_type.is_ptr()
&& !node.expr.typ.is_ptr() && final_sym.kind in [.interface, .sum_type]
Expand All @@ -4168,7 +4167,7 @@ fn (mut g Gen) selector_expr(node ast.SelectorExpr) {
} else {
g.write('.')
}
if !has_embed && left_is_shared {
if !has_embed && node.expr_type.has_flag(.shared_f) {
g.write('val.')
}
if node.expr_type == 0 {
Expand Down

0 comments on commit 057fa2c

Please sign in to comment.