Fix -Wconversion warnings

This commit is contained in:
Peter Dimov
2023-05-31 18:53:35 +03:00
parent fd0de5f538
commit 266fbe6449
2 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ template<class T> void test_rotate( T x )
BOOST_TEST_EQ( +boost::core::rotl( x, -i ), +boost::core::rotr( x, i ) );
unsigned const width = std::numeric_limits<T>::digits;
unsigned r = i & ( width - 1 );
unsigned r = static_cast<unsigned>( i ) & ( width - 1 );
if( r == 0 )
{