mirror of https://github.com/zachjs/sv2v.git
use explicit size for large folded constants
This commit is contained in:
parent
db21869e69
commit
b2291a2046
|
|
@ -141,7 +141,7 @@ toDec n =
|
||||||
UniOp UniSub $ toDec (-n)
|
UniOp UniSub $ toDec (-n)
|
||||||
else if n >= 4294967296 `div` 2 then
|
else if n >= 4294967296 `div` 2 then
|
||||||
let size = fromIntegral $ bits $ n * 2
|
let size = fromIntegral $ bits $ n * 2
|
||||||
in Number $ Decimal (negate size) True n
|
in Number $ Decimal size True n
|
||||||
else
|
else
|
||||||
RawNum n
|
RawNum n
|
||||||
where
|
where
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue