Commit b2291a20 by Zachary Snow

use explicit size for large folded constants

parent db21869e
......@@ -141,7 +141,7 @@ toDec n =
UniOp UniSub $ toDec (-n)
else if n >= 4294967296 `div` 2 then
let size = fromIntegral $ bits $ n * 2
in Number $ Decimal (negate size) True n
in Number $ Decimal size True n
else
RawNum n
where
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment