From b95b095dc86791a692df7f511ab0aac6e3a24ddb Mon Sep 17 00:00:00 2001 From: Ethan Girouard Date: Sun, 31 Aug 2025 20:37:34 -0400 Subject: [PATCH] Make pretty sizeof match parse --- src/Windows12/Ast.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Windows12/Ast.hs b/src/Windows12/Ast.hs index 0365f10..d41544c 100644 --- a/src/Windows12/Ast.hs +++ b/src/Windows12/Ast.hs @@ -163,7 +163,7 @@ instance Pretty Expr where pretty (Index arr idx) = parens (pretty arr) <> brackets (pretty idx) pretty (Member e m) = pretty e <> "." <> pretty m pretty (Cast t e) = parens (pretty t) <> parens (pretty e) - pretty (Sizeof t) = "sizeof" <> parens (pretty t) + pretty (Sizeof t) = "sizeof " <> pretty t pretty (StructInit s fields) = pretty s <+> lbrace <> line <> indent 4 (vsep (punctuate comma (map (\(n, e) -> pretty n <+> "=" <+> pretty e) fields))) <> line <> rbrace instance Pretty Stmt where