cgen: use __new_array instead of __new_array_with_default for empty vargs

pull/10215/head
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
1 changed files with 1 additions and 1 deletions

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