Skip to content

Commit d17faa6

Browse files
committed
fix
1 parent 1aa2afc commit d17faa6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vlib/v/gen/c/cgen.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5674,7 +5674,7 @@ fn (mut g Gen) cast_expr(node ast.CastExpr) {
56745674
}
56755675
} else if !node_typ_is_option && !node_typ.is_ptr() && !expr_type.is_ptr()
56765676
&& ((sym.info is ast.Struct && !sym.info.is_typedef)
5677-
|| (sym.kind == .alias && final_sym.kind == .struct)) {
5677+
|| (sym.kind == .alias && final_sym.info is ast.Struct && !final_sym.info.is_typedef)) {
56785678
// deprecated, replaced by Struct{...exr}
56795679
styp := g.styp(node_typ)
56805680
g.write('*((${styp} *)(&')

0 commit comments

Comments
 (0)