diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-11-07 01:55:44 +0400 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-11-07 01:55:44 +0400 |
commit | 119703f98410eb8ff0b312145e120b5d0406ebd7 (patch) | |
tree | 3a85fe138e017dc6e995119bc244561f7442de0c /libcxx/include/complex | |
parent | 3e2740a36cf5f41a9e8306e5e911f2b9a57a15ee (diff) |
Dimitry Andric: Silence some miscellaneous warnings.
llvm-svn: 167493
Diffstat (limited to 'libcxx/include/complex')
-rw-r--r-- | libcxx/include/complex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/include/complex b/libcxx/include/complex index 6f8815298ca6..07d3754658fb 100644 --- a/libcxx/include/complex +++ b/libcxx/include/complex @@ -1249,10 +1249,12 @@ acosh(const complex<_Tp>& __x) if (isnan(__x.imag())) return complex<_Tp>(abs(__x.real()), __x.imag()); if (isinf(__x.imag())) + { if (__x.real() > 0) return complex<_Tp>(__x.real(), copysign(__pi * _Tp(0.25), __x.imag())); else return complex<_Tp>(-__x.real(), copysign(__pi * _Tp(0.75), __x.imag())); + } if (__x.real() < 0) return complex<_Tp>(-__x.real(), copysign(__pi, __x.imag())); return complex<_Tp>(__x.real(), copysign(_Tp(0), __x.imag())); |