summaryrefslogtreecommitdiff
path: root/src/Compile.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-03-04 21:33:56 +0100
committerTom Smeding <tom@tomsmeding.com>2025-03-04 21:45:50 +0100
commitd751deedfdc2ba5fbeb72ede5754587a1f677835 (patch)
tree7bbb7ea6ac1482599a597feee1401d2b781b4971 /src/Compile.hs
parentbacd70ca6ba028e935bb512aeee713943901acdd (diff)
Compile: Fix right-precedence of (*)
Diffstat (limited to 'src/Compile.hs')
-rw-r--r--src/Compile.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compile.hs b/src/Compile.hs
index 7a846d4..0e6eee7 100644
--- a/src/Compile.hs
+++ b/src/Compile.hs
@@ -170,9 +170,9 @@ printCExpr d = \case
,(">", (5, (6, 6)))
,("<=", (5, (6, 6)))
,(">=", (5, (6, 6)))
- ,("+", (6, (6, 6)))
+ ,("+", (6, (6, 7)))
,("-", (6, (6, 7)))
- ,("*", (7, (7, 7)))
+ ,("*", (7, (7, 8)))
,("/", (7, (7, 8)))
,("%", (7, (7, 8)))]