From 4d95141557726d152d64aa71807612c4787a339d Mon Sep 17 00:00:00 2001 From: gdr Date: Tue, 19 Dec 2000 11:21:14 +0000 Subject: [PATCH] * include/bits/std_complex.h (complex::operator-=): Fix thinko. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38377 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/std_complex.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.11.0