Skip to content

Commit bdbf9f6

Browse files
committed
Fix problem with for each loops
1 parent 0b2f7bf commit bdbf9f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Language/C/Pretty.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ instance Pretty CStat where
144144
$$ text "while" <+> text "(" <> pretty expr <> text ");"
145145
pretty (CFor for_init cond step stat _) =
146146
ii $ text "for" <+> text "("
147-
<> pretty for_init
147+
<> pretty for_init <> semi
148148
<+> maybeP pretty cond <> semi
149149
<+> maybeP pretty step <> text ")" $+$ prettyPrec (-1) stat
150150
pretty (CGoto ident _) = ii $ text "goto" <+> identP ident <> semi

0 commit comments

Comments
 (0)