Fix -Wconversion warnings

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

No files matched your search

+1 -1
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 )
{