cgen: minor generated C source format fix

pull/5924/head
Ruofan XU 2020-07-22 22:27:37 +08:00 committed by GitHub
parent f09e14a2b9
commit 0f72328d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -928,7 +928,7 @@ fn (mut g Gen) for_in(it ast.ForInStmt) {
g.write_fn_ptr_decl(val_sym.info as table.FnType, c_name(it.val_var))
g.writeln(' = ((voidptr*)$atmp${op_field}data)[$i];')
} else {
g.write('\t$styp ${c_name(it.val_var)} = (($styp*)$atmp${op_field}data)[$i];')
g.writeln('\t$styp ${c_name(it.val_var)} = (($styp*)$atmp${op_field}data)[$i];')
}
}
g.stmts(it.stmts)