Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Sep 19, 2024
1 parent c0f7244 commit e207ad0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vlib/v/gen/c/fn.v
Original file line number Diff line number Diff line change
Expand Up @@ -2719,6 +2719,8 @@ fn (mut g Gen) ref_or_deref_arg(arg ast.CallArg, expected_type ast.Type, lang as
if expected_type.has_flag(.option) {
g.expr_with_opt(arg.expr, arg_typ, expected_type)
return
} else if arg.expr is ast.Ident && arg.expr.language == .c {
g.write('(voidptr)')
} else {
g.write('(voidptr)&/*qq*/')
}
Expand Down

0 comments on commit e207ad0

Please sign in to comment.