This commit is contained in:
Felipe Pena 2025-09-12 07:38:09 -03:00
parent 6993b23645
commit 487db2fe17

View file

@ -2574,7 +2574,7 @@ fn (mut g Gen) call_args(node ast.CallExpr) {
tmp := if is_option { g.go_before_last_stmt() } else { '' }
if is_option {
g.writeln('${g.styp(varg_type)} ${tmp_var};')
g.write('_option_ok((${base_type}[]) {')
g.write('builtin___option_ok((${base_type}[]) {')
}
g.write('builtin__new_array_from_c_array${noscan}(${variadic_count}, ${variadic_count}, sizeof(${elem_type}), _MOV((${elem_type}[${variadic_count}]){')
for j in arg_nr .. args.len {