cgen: minor simplification of struct zero init (#9085)

pull/9097/head
yuyi 2021-03-03 23:03:50 +08:00 committed by GitHub
parent 38495da07e
commit 822d20d2cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4793,7 +4793,7 @@ fn (mut g Gen) struct_init(struct_init ast.StructInit) {
}
if !initialized {
g.write('\n#ifndef __cplusplus\n0\n#endif\n')
g.write('0')
}
g.write('}')