cgen: use __new_array instead of __new_array_with_default for empty vargs
parent
560301dbfe
commit
5e26273529
|
@ -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))')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue