diff --git a/include/boost/crc.hpp b/include/boost/crc.hpp index 87f6ebf..80a8db5 100644 --- a/include/boost/crc.hpp +++ b/include/boost/crc.hpp @@ -1774,7 +1774,14 @@ crc_basic::process_bits unsigned char const high_bit_mask = 1u << ( CHAR_BIT - 1u ); for ( std::size_t i = bit_length ; i > 0u ; --i, bits <<= 1u ) { +#ifdef BOOST_MSVC +#pragma warning(push) +#pragma warning(disable:4800) +#endif process_bit( static_cast(bits & high_bit_mask) ); +#ifdef BOOST_MSVC +#pragma warning(pop) +#endif } }