use explicit size for large folded constants

This commit is contained in:
Zachary Snow 2020-07-12 18:06:37 -06:00
parent db21869e69
commit b2291a2046
1 changed files with 1 additions and 1 deletions

View File

@ -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