cgen: fix goto label

Alexander Medvednikov 2022-06-01 06:34:04 +03:00 committed by Chewing_Bever
parent 0bdc213dc6
commit 0e384bb60d
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
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)