* include/bits/std_complex.h (abs): Fix thinko.
authorGabriel Dos Reis <gdr@merlin.codesourcery.com>
Thu, 1 Nov 2001 18:42:13 +0000 (18:42 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Thu, 1 Nov 2001 18:42:13 +0000 (18:42 +0000)
From-SVN: r46700

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

index 202ff3f..ffa46d4 100644 (file)
@@ -39,7 +39,7 @@
 
        * include/bits/std_complex.h (_Norm_helper): New class template.
        (norm): Tweak.
-       (abs): Tweak.
+       (abs): Tweak. Fix Thinko.
 
 2001-10-31  Benjamin Kosnik  <bkoz@redhat.com>
 
index fc34770..85b8d29 100644 (file)
@@ -405,7 +405,7 @@ namespace std
     {
       _Tp __x = __z.real();
       _Tp __y = __z.imag();
-      const _Tp __s = abs(abs(__x), abs(__y));
+      const _Tp __s = max(abs(__x), abs(__y));
       if (__s == _Tp())  // well ...
         return __s;
       __x /= __s;