cgen: fix goto label

master
Alexander Medvednikov 2022-06-01 06:34:04 +03:00
parent c54c9b817c
commit f40c30c3dc
1 changed files with 1 additions and 1 deletions

View File

@ -1825,7 +1825,7 @@ fn (mut g Gen) stmt(node ast.Stmt) {
g.global_decl(node)
}
ast.GotoLabel {
g.writeln('${c_name(node.name)}: ')
g.writeln('${c_name(node.name)}: {}')
}
ast.GotoStmt {
g.write_v_source_line_info(node.pos)