Skip to content

Commit 125b0d2

Browse files
committed
fix case
1 parent 0e88693 commit 125b0d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/c2v.v

+2-2
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ fn (mut c C2V) case_st(mut child Node, is_enum bool) bool {
10991099
}
11001100
vprintln('A TYP=${a.ast_type}')
11011101
if a.kindof(.compound_stmt) {
1102-
c.genln('{')
1102+
c.genln(' {')
11031103
c.genln('// case comp stmt')
11041104
c.statements(mut a)
11051105
} else if a.kindof(.case_stmt) {
@@ -1148,7 +1148,7 @@ fn (mut c C2V) case_st(mut child Node, is_enum bool) bool {
11481148
// case body
11491149
else {
11501150
c.inside_switch_enum = false
1151-
c.genln('{ // case comp body kind=${a.kind} is_enum=${is_enum}')
1151+
c.genln(' { // case comp body kind=${a.kind} is_enum=${is_enum}')
11521152
c.statement(mut a)
11531153
if a.kindof(.return_stmt) {
11541154
} else if a.kindof(.break_stmt) {

0 commit comments

Comments
 (0)