aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@codesourcery.com>2000-12-19 11:21:14 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2000-12-19 11:21:14 +0000
commit0a9419ccca34bd73f2c5833861ac9c47a1b68529 (patch)
treea86d8fc4841c6aa93f5b68e00311a3993a77bb0d
parentecbe3dd5d196fa57175743f2768764a8b9eb18ae (diff)
downloadgcc-0a9419ccca34bd73f2c5833861ac9c47a1b68529.zip
gcc-0a9419ccca34bd73f2c5833861ac9c47a1b68529.tar.gz
gcc-0a9419ccca34bd73f2c5833861ac9c47a1b68529.tar.bz2
std_complex.h (complex<float>::operator-=): Fix thinko.
* include/bits/std_complex.h (complex<float>::operator-=): Fix thinko. From-SVN: r38377
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/bits/std_complex.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b0d4568..d5692fc 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-19 Gabriel Dos Reis <gdr@codesourcery.com>
+
+ * include/bits/std_complex.h (complex<float>::operator-=): Fix
+ thinko.
+
2000-12-18 Benjamin Kosnik <bkoz@redhat.com>
* 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 10f0661..136ecb4 100644
--- a/libstdc++-v3/include/bits/std_complex.h
+++ b/libstdc++-v3/include/bits/std_complex.h
@@ -615,7 +615,7 @@ namespace std
complex<float>::operator-=(const complex<_Tp>& __z)
{
__real__ _M_value -= __z.real();
- __imag__ _M_value -= __z.real();
+ __imag__ _M_value -= __z.imag();
return *this;
}