Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Sep 26, 2024
1 parent 563fffe commit 0d4784e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vlib/v/gen/c/fn.v
Original file line number Diff line number Diff line change
Expand Up @@ -2607,8 +2607,9 @@ fn (mut g Gen) call_args(node ast.CallExpr) {
}
}
} else {
if args.len == 1
&& g.table.type_to_str(arr_info.elem_type) == g.table.type_to_str(varg_type) {
// passing variadic arg to another call which expects same array type
if args.len == 1 && args[arg_nr].typ.has_flag(.variadic)
&& args[arg_nr].typ == varg_type {
g.ref_or_deref_arg(args[arg_nr], arr_info.elem_type, node.language,
false)
} else {
Expand Down

0 comments on commit 0d4784e

Please sign in to comment.