diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-11-11 17:41:56 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-11-11 17:41:56 +0000 |
| commit | a600a25e3ea5715262299f032796a83bf7ee330e (patch) | |
| tree | bea342f3ffe3106bafa7270ed6da5280f1037ce8 /contrib/libc++ | |
| parent | 552117964a531ab117f0d11e4312d65db1a6dae8 (diff) | |
Notes
Diffstat (limited to 'contrib/libc++')
| -rw-r--r-- | contrib/libc++/include/cmath | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libc++/include/cmath b/contrib/libc++/include/cmath index 36d26b38760f..0f06486fb34f 100644 --- a/contrib/libc++/include/cmath +++ b/contrib/libc++/include/cmath @@ -644,8 +644,8 @@ _LIBCPP_CONSTEXPR _IntT __max_representable_int_for_float() _NOEXCEPT { static_assert(is_floating_point<_FloatT>::value, "must be a floating point type"); static_assert(is_integral<_IntT>::value, "must be an integral type"); static_assert(numeric_limits<_FloatT>::radix == 2, "FloatT has incorrect radix"); - static_assert(_IsSame<_FloatT, float>::value || _IsSame<_FloatT, double>::value - || _IsSame<_FloatT,long double>::value, "unsupported floating point type"); + static_assert((_IsSame<_FloatT, float>::value || _IsSame<_FloatT, double>::value + || _IsSame<_FloatT,long double>::value), "unsupported floating point type"); return _FloatBigger ? numeric_limits<_IntT>::max() : (numeric_limits<_IntT>::max() >> _Bits << _Bits); } |
