1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

View File

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