This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

BUG REPORT?: nan("") in cexp.c


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



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