* include/bits/std_complex.h (abs): Tweak.

From-SVN: r46693
This commit is contained in:
Gabriel Dos Reis 2001-11-01 15:01:07 +00:00 committed by Gabriel Dos Reis
parent 7a1929e1dc
commit b522a9ce44
2 changed files with 2 additions and 1 deletions

View 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>

View 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;