This is the mail archive of the gcc-patches@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]

[libstdc++ 3.0] libstdc++/4622 and gcc 3.0.3


This was applied to mainline at the end of October.  It now goes onto
the branch by approval of Benjamin and Mark.  Tested on i686-linux with
no regressions.


2001-12-09  Edward E. Meyer  <edward.e.meyer@boeing.com>

	PR libstdc++/4622 (copy from trunk 2001-10-31)
	* include/bits/std_complex.h (complex::operator/=): Correct sign.


Index: include/bits/std_complex.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/std_complex.h,v
retrieving revision 1.15.4.6
diff -u -3 -p -r1.15.4.6 std_complex.h
--- std_complex.h	2001/11/01 18:46:50	1.15.4.6
+++ std_complex.h	2001/12/10 02:50:59
@@ -238,7 +238,7 @@ namespace std
     {
       const _Tp __r =  _M_real * __z.real() + _M_imag * __z.imag();
       const _Tp __n = norm(__z);
-      _M_imag = (_M_real * __z.imag() - _M_imag * __z.real()) / __n;
+      _M_imag = (_M_imag * __z.real() - _M_real * __z.imag()) / __n;
       _M_real = __r / __n;
       return *this;
     }


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