OSDN Git Service

* include/bits/std_complex.h (complex<float>::operator-=): Fix
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Dec 2000 11:21:14 +0000 (11:21 +0000)
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Dec 2000 11:21:14 +0000 (11:21 +0000)
      thinko.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38377 138bc75d-0d04-0410-961f-82ee72b054a4

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

index b0d4568..d5692fc 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 10f0661..136ecb4 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;
     }