cgen: remove redundant spaces in generated C

pull/4294/head
krischerven 2020-04-08 10:52:07 -04:00 committed by GitHub
parent 5247d5924e
commit bcb9d90abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -972,7 +972,7 @@ fn (g mut Gen) expr(node ast.Expr) {
} else { } else {
len := it.exprs.len len := it.exprs.len
g.write('new_array_from_c_array($len, $len, sizeof($elem_type_str), ') g.write('new_array_from_c_array($len, $len, sizeof($elem_type_str), ')
g.writeln('($elem_type_str[$len]){\t') g.write('($elem_type_str[$len]){\n\t\t')
for expr in it.exprs { for expr in it.exprs {
g.expr(expr) g.expr(expr)
g.write(', ') g.write(', ')