This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
BUG REPORT?: nan("") in cexp.c
- To: libstdc++@sourceware.cygnus.com
- Subject: BUG REPORT?: nan("") in cexp.c
- From: joel reed <joelreed@yahoo.com>
- Date: Tue, 6 Apr 1999 10:21:34 -0700 (PDT)
in math/cexp.c line 104 on libstdc++.2.90.4 i believe
nan("") should be changed to NAN which is defined in
mathconf.h and is used everywhere else in the library.
NAN is defined as nan("") in mathconf.h BTW.
existing code...
{
/* If the real part is NaN the result is NaN +
iNaN. */
__real__ retval = nan ("");
__imag__ retval = nan ("");
}
proposed change...
{
/* If the real part is NaN the result is NaN +
iNaN. */
__real__ retval = NAN;
__imag__ retval = NAN;
}
thanks
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com