This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Typo in std_cmath.h
- To: "libstdc++ at sourceware dot cygnus dot com" <libstdc++ at sourceware dot cygnus dot com>
- Subject: Typo in std_cmath.h
- From: Petter Urkedal <petter at matfys dot lth dot se>
- Date: Tue, 12 Oct 1999 16:42:56 +0200
- Organization: Lund Institute of Technology
There seems to me to be a typo in todays CVS tree. Here is
the ChangeLog entry and a patch.
Cheers,
Petter.
1999-10-12 Petter Urkedal <petter@matfys.lth.se>
* bits/std_cmath.h (abs(float)): When ::absf is not present, call
::fabs(double) rather than ::abs(int).
--------------$ cvs diff -c bits/std_cmath.h
Index: bits/std_cmath.h
===================================================================
RCS file: /cvs/libstdc++/libstdc++/bits/std_cmath.h,v
retrieving revision 1.14
diff -c -r1.14 std_cmath.h
*** std_cmath.h 1999/10/10 02:58:38 1.14
--- std_cmath.h 1999/10/12 14:27:25
***************
*** 87,93 ****
abs(float __x) { return ::absf(__x); }
#else
inline float
! abs(float __x) { return ::abs(static_cast<double>(__x)); }
#endif
#if HAVE_ACOSF
--- 87,93 ----
abs(float __x) { return ::absf(__x); }
#else
inline float
! abs(float __x) { return ::fabs(static_cast<double>(__x)); }
#endif
#if HAVE_ACOSF
--
[http://matfys.lth.se/~petter/]