std_complex.h (complex<float>::operator-=): Fix thinko.
authorGabriel Dos Reis <gdr@codesourcery.com>
Tue, 19 Dec 2000 11:21:14 +0000 (11:21 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Tue, 19 Dec 2000 11:21:14 +0000 (11:21 +0000)
      * include/bits/std_complex.h (complex<float>::operator-=): Fix
      thinko.

From-SVN: r38377

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/std_complex.h

index b0d45684a0c0cea0b1d6ec4bf7d33bfcfce4b193..d5692fc6497fdc42312b83fd4dd6a6e66e1f1881 100644 (file)
@@ -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.
index 10f0661a3b4d660523c3db570f79910094181328..136ecb458f35aa8a2f04a485c5bc82e8fd518052 100644 (file)
@@ -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;
     }