#4867: ghci displays negative floats incorrectly (was: Incorrect result from
trig
functions)
-------------------------------+--------------------------------------------
Reporter: gwright | Owner: gwright
Type: bug | Status: new
Priority: high | Milestone: 7.0.2
Component: GHCi | Version: 7.0.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: MacOS X | Blocking:
Architecture: x86_64 (amd64) | Failure: Incorrect result at runtime
-------------------------------+--------------------------------------------
Comment(by gwright):
I did a fresh pull from the repository and slapped my `rts/Linker.c` into
that tree. The `validate` script passes (with one or two fewer failure
than before) and firing up `ghci`, I get:
{{{
gwright-macbook> inplace/bin/ghc-stage2 --interactive
GHCi, version 7.0.1.20110203: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> -1.0
-1.0
Prelude> tanh(-1.0)
-0.7615941559557649
Prelude>
}}}
Gladness and rejoicing all around. The double minus sign in my hacked-up
tree seems the spurious result of my ham-fisted debugging.
I will send a note to ghc HQ about the my patch, which adds quite a bit of
debugging information. Perhaps they'll want the bug fix patch separately
from the additional debugging and orthography changes.
This should be wrapped up in the next day or two.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4867#comment:28>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs