Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
MCausc78 committed Feb 11, 2024
1 parent e1ac40c commit bc60b73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vlib/v/gen/c/cgen.v
Original file line number Diff line number Diff line change
Expand Up @@ -7057,6 +7057,10 @@ fn (mut g Gen) as_cast(node ast.AsCast) {
g.as_cast_type_names[idx] = variant_sym.name
}
} else if mut expr_type_sym.info is ast.Interface {
if node.expr_type == node.typ {
g.expr(node.expr)
return
}
dot := if node.expr_type.is_ptr() { '->' } else { '.' }
if node.expr.has_fn_call() && !g.is_cc_msvc {
tmp_var := g.new_tmp_var()
Expand Down

0 comments on commit bc60b73

Please sign in to comment.