From: Gabriel Dos Reis Date: Tue, 19 Dec 2000 11:21:14 +0000 (+0000) Subject: std_complex.h (complex::operator-=): Fix thinko. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a9419ccca34bd73f2c5833861ac9c47a1b68529;p=gcc.git std_complex.h (complex::operator-=): Fix thinko. * include/bits/std_complex.h (complex::operator-=): Fix thinko. From-SVN: r38377 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b0d45684a0c..d5692fc6497 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2000-12-19 Gabriel Dos Reis + + * include/bits/std_complex.h (complex::operator-=): Fix + thinko. + 2000-12-18 Benjamin Kosnik * configure.in: Set os_include_dir for cross_compiles. diff --git a/libstdc++-v3/include/bits/std_complex.h b/libstdc++-v3/include/bits/std_complex.h index 10f0661a3b4..136ecb458f3 100644 --- a/libstdc++-v3/include/bits/std_complex.h +++ b/libstdc++-v3/include/bits/std_complex.h @@ -615,7 +615,7 @@ namespace std complex::operator-=(const complex<_Tp>& __z) { __real__ _M_value -= __z.real(); - __imag__ _M_value -= __z.real(); + __imag__ _M_value -= __z.imag(); return *this; }