aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2023-01-19 12:09:47 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2023-01-19 12:09:47 +0300
commitf93954732305ff52058c5ea612f9cd53de09524a (patch)
tree18e169bf67b856ec772b6d5e6e2dd3362723ed26 /contrib
parent930a233f6a3841bf8758f8ad306775ef8c707e3b (diff)
downloadydb-f93954732305ff52058c5ea612f9cd53de09524a.tar.gz
Update contrib/restricted/boost/crc to 1.81.0
Diffstat (limited to 'contrib')
-rw-r--r--contrib/restricted/boost/crc/include/boost/crc.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/restricted/boost/crc/include/boost/crc.hpp b/contrib/restricted/boost/crc/include/boost/crc.hpp
index c39d615a6f..e5fb61c3a8 100644
--- a/contrib/restricted/boost/crc/include/boost/crc.hpp
+++ b/contrib/restricted/boost/crc/include/boost/crc.hpp
@@ -566,7 +566,7 @@ namespace detail
remainder ^= ( new_dividend_bits & 1u ) ? high_bit_mask : 0u;
// perform modulo-2 division
- bool const quotient = remainder & high_bit_mask;
+ bool const quotient = (remainder & high_bit_mask) != 0;
remainder <<= 1;
remainder ^= quotient ? truncated_divisor : 0u;
@@ -681,7 +681,7 @@ namespace detail
// Perform modulo-2 division for each new dividend input bit
for ( int i = word_length ; i ; --i, new_dividend_bits >>= 1 )
{
- bool const quotient = remainder & high_bit_mask;
+ bool const quotient = (remainder & high_bit_mask) != 0;
remainder <<= 1;
remainder |= new_dividend_bits & 1u;
@@ -1773,7 +1773,7 @@ crc_basic<Bits>::process_bits
unsigned char const high_bit_mask = 1u << ( CHAR_BIT - 1u );
for ( std::size_t i = bit_length ; i > 0u ; --i, bits <<= 1u )
{
- process_bit( static_cast<bool>(bits & high_bit_mask) );
+ process_bit( (bits & high_bit_mask) != 0 );
}
}