diff options
| -rw-r--r-- | libstdc++-v3/ChangeLog | 1 | ||||
| -rw-r--r-- | libstdc++-v3/include/bits/std_complex.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index cafd3a0..09498bb 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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> diff --git a/libstdc++-v3/include/bits/std_complex.h b/libstdc++-v3/include/bits/std_complex.h index fcd8c4d..fc34770 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; |
