[GHC] #867: Integer arithmetic gives the wrong answer on
amd64/Linux
GHC
trac at galois.com
Wed Sep 27 21:20:23 EDT 2006
#867: Integer arithmetic gives the wrong answer on amd64/Linux
-----------------------+----------------------------------------------------
Reporter: igloo | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.4.1
Severity: normal | Resolution: fixed
Keywords: | Os: Linux
Difficulty: Unknown | Architecture: x86_64 (amd64)
-----------------------+----------------------------------------------------
Changes (by igloo):
* resolution: => fixed
* status: new => closed
Comment:
Fixed by:
{{{
Thu Sep 28 01:48:06 BST 2006 Ian Lynagh <igloo at earth.li>
* Fix mulIntMayOflo on 64-bit arches; fixes trac #867
We were assuming we could multiply 2 32-bit numbers without overflowing
a 64-bit number, but we can't as the top bit is the sign bit.
}}}
Test is arith019.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/867>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list