* include/bits/std_complex.h (abs): Tweak.
authorGabriel Dos Reis <gdr@merlin.codesourcery.com>
Thu, 1 Nov 2001 15:01:07 +0000 (15:01 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Thu, 1 Nov 2001 15:01:07 +0000 (15:01 +0000)
From-SVN: r46693

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

index cafd3a0..09498bb 100644 (file)
@@ -2,6 +2,7 @@
 
        * include/bits/std_complex.h (_Norm_helper): New class template.
        (norm): Tweak.
+       (abs): Tweak.
 
 2001-10-31  Benjamin Kosnik  <bkoz@redhat.com>
 
index fcd8c4d..fc34770 100644 (file)
@@ -405,7 +405,7 @@ namespace std
     {
       _Tp __x = __z.real();
       _Tp __y = __z.imag();
-      const _Tp __s = abs(__x) + abs(__y);
+      const _Tp __s = abs(abs(__x), abs(__y));
       if (__s == _Tp())  // well ...
         return __s;
       __x /= __s;