From 0f72328d1fa0dc9b6ec96029ca863dfe81ec5779 Mon Sep 17 00:00:00 2001 From: Ruofan XU <47302112+SleepyRoy@users.noreply.github.com> Date: Wed, 22 Jul 2020 22:27:37 +0800 Subject: [PATCH] cgen: minor generated C source format fix --- vlib/v/gen/cgen.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/cgen.v b/vlib/v/gen/cgen.v index 00074ad9f6..be145a782b 100644 --- a/vlib/v/gen/cgen.v +++ b/vlib/v/gen/cgen.v @@ -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)