summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/bits/std_complex.h
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-01 15:01:07 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-01 15:01:07 +0000
commite28cf8ca15f4065baba02749eacba2c99742e797 (patch)
treeff186c58a1535cc42026242e483cc2f293ce2b5c /libstdc++-v3/include/bits/std_complex.h
parent0c0492c91c29196509e7a1c851ad75115335c1dc (diff)
downloadppe42-gcc-e28cf8ca15f4065baba02749eacba2c99742e797.tar.gz
ppe42-gcc-e28cf8ca15f4065baba02749eacba2c99742e797.zip
* include/bits/std_complex.h (abs): Tweak.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46693 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/std_complex.h')
-rw-r--r--libstdc++-v3/include/bits/std_complex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/std_complex.h b/libstdc++-v3/include/bits/std_complex.h
index fcd8c4db2fd..fc34770a304 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(__x) + abs(__y);
+ const _Tp __s = abs(abs(__x), abs(__y));
if (__s == _Tp()) // well ...
return __s;
__x /= __s;
OpenPOWER on IntegriCloud