Skip to content

Commit

Permalink
cgen: unkek cgen.v
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Jun 29, 2024
1 parent b6c7b46 commit df7828d
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 @@ -2393,7 +2393,7 @@ fn (mut g Gen) get_sumtype_casting_fn(got_ ast.Type, exp_ ast.Type) string {
g.get_sumtype_variant_name(exp_, exp_sym)
}
// fn_name := '${got_sym.cname}_to_sumtype_${exp_sym.cname}'
fn_name := '${g.get_sumtype_variant_name(got_, got_sym)}_to_sumtype_${cname}/*KEK*/'

This comment has been minimized.

Copy link
@Delta456

Delta456 Jun 30, 2024

Member

Wonder when did this get staged 😆

This comment has been minimized.

Copy link
@spytheman

spytheman Jun 30, 2024

Author Member

eb30f26 2023-10-07

fn_name := '${g.get_sumtype_variant_name(got_, got_sym)}_to_sumtype_${cname}'
if got == exp || g.sumtype_definitions[i] {
return fn_name
}
Expand Down

0 comments on commit df7828d

Please sign in to comment.