This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[libstdc++ 3.0] libstdc++/4622 and gcc 3.0.3
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- To: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sun, 9 Dec 2001 21:59:04 -0500
- Subject: [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;
}