* include/bits/std_complex.h (abs): Fix thinko.
From-SVN: r46700
This commit is contained in:
parent
6126a380a2
commit
2643b009f9
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user