This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: real_from_string fails to convert negative values


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]