1
0
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:
Joe Conigliaro 2021-05-26 15:48:48 +10:00
parent 560301dbfe
commit 5e26273529
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1

View File

@ -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))')
}
}
}