From 5025ac7147ffe9594019c68560c144a99c77ea0b Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 6 May 2021 19:35:08 +0300 Subject: [PATCH] Minor edits --- base/common/wide_integer_impl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/common/wide_integer_impl.h b/base/common/wide_integer_impl.h index b33857946f1..a9724abf820 100644 --- a/base/common/wide_integer_impl.h +++ b/base/common/wide_integer_impl.h @@ -670,7 +670,7 @@ public: { if constexpr (should_keep_size()) { - if (std::numeric_limits::is_signed && (is_negative(lhs) != is_negative(rhs))) + if (std::is_signed_v && (is_negative(lhs) != is_negative(rhs))) return is_negative(rhs); for (unsigned i = 0; i < item_count; ++i) @@ -695,7 +695,7 @@ public: { if constexpr (should_keep_size()) { - if (std::numeric_limits::is_signed && (is_negative(lhs) != is_negative(rhs))) + if (std::is_signed_v && (is_negative(lhs) != is_negative(rhs))) return is_negative(lhs); for (unsigned i = 0; i < item_count; ++i) @@ -1120,7 +1120,7 @@ template template constexpr integer::operator T() const noexcept { - static_assert(std::numeric_limits::is_integer); + static_assert(std::is_integral_v); /// NOTE: memcpy will suffice, but unfortunately, this function is constexpr.