logo       

Re: [GHC] #867: Integer arithmetic gives the wrong answer on amd64/Linux: msg#00110

lang.haskell.glasgow.bugs

Subject: Re: [GHC] #867: Integer arithmetic gives the wrong answer on amd64/Linux

#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@xxxxxxxx>
* 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@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise