[GHC] #5166: Wrong calculation with Int64

GHC cvs-ghc at haskell.org
Mon May 2 12:44:44 CEST 2011


#5166: Wrong calculation with Int64
-------------------------------+--------------------------------------------
    Reporter:  malphunction    |       Owner:                             
        Type:  bug             |      Status:  new                        
    Priority:  normal          |   Component:  Runtime System             
     Version:  6.12.3          |    Keywords:                             
    Testcase:                  |   Blockedby:                             
          Os:  Linux           |    Blocking:                             
Architecture:  x86_64 (amd64)  |     Failure:  Incorrect result at runtime
-------------------------------+--------------------------------------------

Comment(by kosmikus):

 The behaviour of GHC looks correct to me. The "correct" result is beyond
 the maxBound of Int64 (and even Word64), so you have an overflow.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5166#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list