mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: use __new_array instead of __new_array_with_default for empty vargs
This commit is contained in:
parent
560301dbfe
commit
5e26273529
@ -1140,7 +1140,7 @@ fn (mut g Gen) call_args(node ast.CallExpr) {
|
||||
}
|
||||
g.write('}))')
|
||||
} else {
|
||||
g.write('__new_array_with_default(0, 0, sizeof($elem_type), 0)')
|
||||
g.write('__new_array(0, 0, sizeof($elem_type))')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user