diff options
author | Tom Smeding <tom@tomsmeding.com> | 2024-10-21 23:20:57 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2024-10-21 23:20:57 +0200 |
commit | e7d7ac0fd8b81c1d6fae9ab7c1e4654133c631ea (patch) | |
tree | 4dc880e6956b42f0920382d772b49adc2a4ce556 /src/Interpreter.hs | |
parent | 246439502b78c4a8fcc27ab3296c67471a2b239d (diff) |
Tests
Diffstat (limited to 'src/Interpreter.hs')
-rw-r--r-- | src/Interpreter.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Interpreter.hs b/src/Interpreter.hs index 4d1358f..8ce1b0e 100644 --- a/src/Interpreter.hs +++ b/src/Interpreter.hs @@ -125,6 +125,8 @@ interpretOp op arg = case op of OEq st -> numericIsNum st $ uncurry (==) arg ONot -> not arg OIf -> if arg then Left () else Right () + ORound64 -> round arg + OToFl64 -> fromIntegral arg zeroD2 :: STy t -> Rep (D2 t) zeroD2 typ = case typ of |