This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: real_from_string fails to convert negative values
- From: Richard Henderson <rth at redhat dot com>
- To: Paul Brook <paul at nowt dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 29 Sep 2002 10:45:44 -0700
- Subject: Re: real_from_string fails to convert negative values
- References: <200209282233.10226.paul@nowt.org>
On Sat, Sep 28, 2002 at 10:37:21PM +0100, Paul Brook wrote:
> The real_from_string function in real.c doesn't seem to convert negative
> numbers correctly. It seems to return the absolute (ie. positive) value of
> the value, and ignore any preceeding - signs.
Sure enough. The existing code only works for -0. I'll have it fixed
in a moment.
r~