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:
@@ -1140,7 +1140,7 @@ fn (mut g Gen) call_args(node ast.CallExpr) {
|
|||||||
}
|
}
|
||||||
g.write('}))')
|
g.write('}))')
|
||||||
} else {
|
} else {
|
||||||
g.write('__new_array_with_default(0, 0, sizeof($elem_type), 0)')
|
g.write('__new_array(0, 0, sizeof($elem_type))')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user