From 0a9419ccca34bd73f2c5833861ac9c47a1b68529 Mon Sep 17 00:00:00 2001
From: Gabriel Dos Reis <gdr@codesourcery.com>
Date: Tue, 19 Dec 2000 11:21:14 +0000
Subject: [PATCH] std_complex.h (complex<float>::operator-=): Fix thinko.

      * include/bits/std_complex.h (complex<float>::operator-=): Fix
      thinko.

From-SVN: r38377
---
 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 b0d45684a0c0..d5692fc6497f 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 10f0661a3b4d..136ecb458f35 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;
     } 
 
-- 
GitLab