[GHC] #7034: reading a large double results in zero with ghc-7.4.2
GHC
cvs-ghc at haskell.org
Fri Jun 29 16:11:17 CEST 2012
#7034: reading a large double results in zero with ghc-7.4.2
------------------------------+---------------------------------------------
Reporter: maeder | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.2 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
Comment(by maeder):
It seems that the exponent is parsed as Int without checking overflow
{{{
Prelude> 100000000000000000000 :: Int
1661992960
Prelude> 1000000000000000000000 :: Int
-559939584
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7034#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list