diff options
author | thegeorg <[email protected]> | 2022-08-31 10:58:13 +0300 |
---|---|---|
committer | thegeorg <[email protected]> | 2022-08-31 10:58:13 +0300 |
commit | db58955e8e90ba21f2d9b82fa9af131f40ff1c6f (patch) | |
tree | 09c50f24532f69bc07d3ff991cf581c76ef5482a /contrib/restricted/abseil-cpp-tstring/y_absl/numeric/bits.h | |
parent | 665b832313a6f533823ec2187458f2b33a70b093 (diff) |
Update contrib/restricted/abseil-cpp-tstring to 20220623.0
Diffstat (limited to 'contrib/restricted/abseil-cpp-tstring/y_absl/numeric/bits.h')
-rw-r--r-- | contrib/restricted/abseil-cpp-tstring/y_absl/numeric/bits.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/numeric/bits.h b/contrib/restricted/abseil-cpp-tstring/y_absl/numeric/bits.h index a4dcd71f7ac..75cd272d777 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/numeric/bits.h +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/numeric/bits.h @@ -133,7 +133,8 @@ template <class T> Y_ABSL_INTERNAL_CONSTEXPR_CLZ inline typename std::enable_if<std::is_unsigned<T>::value, T>::type bit_width(T x) noexcept { - return std::numeric_limits<T>::digits - countl_zero(x); + return std::numeric_limits<T>::digits - + static_cast<unsigned int>(countl_zero(x)); } // Returns: If x == 0, 0; otherwise the maximal value y such that |