diff --git a/libcxx/include/math.h b/libcxx/include/math.h --- a/libcxx/include/math.h +++ b/libcxx/include/math.h @@ -333,7 +333,7 @@ typename std::enable_if::value, bool>::type signbit(_A1 __x) _NOEXCEPT { - return __libcpp_signbit((typename std::__promote<_A1>::type)__x); + return __libcpp_signbit(__x); } template @@ -357,7 +357,7 @@ typename std::enable_if::value, bool>::type signbit(_A1 __x) _NOEXCEPT { - return ::signbit(static_cast::type>(__x)); + return ::signbit(__x); } template @@ -400,7 +400,7 @@ typename std::enable_if::value, int>::type fpclassify(_A1 __x) _NOEXCEPT { - return __libcpp_fpclassify((typename std::__promote<_A1>::type)__x); + return __libcpp_fpclassify(__x); } template @@ -416,7 +416,7 @@ typename std::enable_if::value, bool>::type fpclassify(_A1 __x) _NOEXCEPT { - return ::fpclassify(static_cast::type>(__x)); + return ::fpclassify(__x); } template @@ -540,7 +540,7 @@ typename std::enable_if::value, bool>::type isnan(_A1 __x) _NOEXCEPT { - return __libcpp_isnan((typename std::__promote<_A1>::type)__x); + return __libcpp_isnan(__x); } template @@ -588,7 +588,7 @@ typename std::enable_if::value, bool>::type isnormal(_A1 __x) _NOEXCEPT { - return __libcpp_isnormal((typename std::__promote<_A1>::type)__x); + return __libcpp_isnormal(__x); } template