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

cgen: fix goto label

This commit is contained in:
Alexander Medvednikov 2022-06-01 06:34:04 +03:00
parent c54c9b817c
commit f40c30c3dc

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)