summaryrefslogtreecommitdiff
path: root/src/Compile.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compile.hs')
-rw-r--r--src/Compile.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Compile.hs b/src/Compile.hs
index 2a184f7..6466065 100644
--- a/src/Compile.hs
+++ b/src/Compile.hs
@@ -1271,6 +1271,7 @@ compileOpGeneral op e1 = do
OLog STF32 -> unary "logf"
OLog STF64 -> unary "log"
OIDiv _ -> binary "/"
+ OMod _ -> binary "%"
compileOpPair :: SOp a b -> CExpr -> CExpr -> CompM CExpr
compileOpPair op e1 e2 = do
@@ -1284,6 +1285,7 @@ compileOpPair op e1 e2 = do
OAnd -> binary "&&"
OOr -> binary "||"
OIDiv _ -> binary "/"
+ OMod _ -> binary "%"
_ -> error "compileOpPair: got unary operator"
-- | Bool: whether to ensure that the literal itself already has the appropriate type