Avoid -Wconversion in sv_find_{first,last}_not_of_test

This commit is contained in:
Peter Dimov 2024-04-11 04:33:29 +03:00
parent 03040c7f5c
commit 442e36f652
2 changed files with 4 additions and 4 deletions

View File

@ -507,7 +507,7 @@ int main()
{
std::string str3( str2 );
str3[ i ] = ~str3[ i ];
str3[ i ] = static_cast<char>( ~str3[ i ] );
BOOST_TEST_EQ( sv.find_first_not_of( str3 ), i );
}
@ -518,7 +518,7 @@ int main()
{
std::string str3( str2 );
str3[ i ] = ~str3[ i ];
str3[ i ] = static_cast<char>( ~str3[ i ] );
BOOST_TEST_EQ( sv.find_first_not_of( str3 ), 255 - i );
}

View File

@ -507,7 +507,7 @@ int main()
{
std::string str3( str2 );
str3[ i ] = ~str3[ i ];
str3[ i ] = static_cast<char>( ~str3[ i ] );
BOOST_TEST_EQ( sv.find_last_not_of( str3 ), i );
}
@ -518,7 +518,7 @@ int main()
{
std::string str3( str2 );
str3[ i ] = ~str3[ i ];
str3[ i ] = static_cast<char>( ~str3[ i ] );
BOOST_TEST_EQ( sv.find_last_not_of( str3 ), 255 - i );
}