Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-11-07 01:55:44 +0400
committerHoward Hinnant <hhinnant@apple.com>2012-11-07 01:55:44 +0400
commit119703f98410eb8ff0b312145e120b5d0406ebd7 (patch)
tree3a85fe138e017dc6e995119bc244561f7442de0c /libcxx/include/complex
parent3e2740a36cf5f41a9e8306e5e911f2b9a57a15ee (diff)
Dimitry Andric: Silence some miscellaneous warnings.
llvm-svn: 167493
Diffstat (limited to 'libcxx/include/complex')
-rw-r--r--libcxx/include/complex2
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()));