#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 <[EMAIL PROTECTED]>
* 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
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs