diff options
author | Gabriel Dos Reis <gdr@merlin.codesourcery.com> | 2001-11-01 18:42:13 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2001-11-01 18:42:13 +0000 |
commit | 2643b009f9dcb08a8d3a4cc223035401a7c9789a (patch) | |
tree | cdd783c3f3faaa27515d5c584d1a6b44e12e6ba7 /libstdc++-v3 | |
parent | 6126a380a2a9555e5a191378dd05abb33e7d3de9 (diff) | |
download | gcc-2643b009f9dcb08a8d3a4cc223035401a7c9789a.zip gcc-2643b009f9dcb08a8d3a4cc223035401a7c9789a.tar.gz gcc-2643b009f9dcb08a8d3a4cc223035401a7c9789a.tar.bz2 |
* include/bits/std_complex.h (abs): Fix thinko.
From-SVN: r46700
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/std_complex.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 202ff3f..ffa46d4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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> diff --git a/libstdc++-v3/include/bits/std_complex.h b/libstdc++-v3/include/bits/std_complex.h index fc34770..85b8d29 100644 --- a/libstdc++-v3/include/bits/std_complex.h +++ b/libstdc++-v3/include/bits/std_complex.h @@ -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; |