Typo in std_cmath.h

Petter Urkedal petter@matfys.lth.se
Tue Oct 12 07:38:00 GMT 1999


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/ ]


More information about the Libstdc++ mailing list