Skip to content

Commit bbf21c0

Browse files
author
Fytch
committed
add explicit casts around std::is{upper|lower} calls
1 parent a7ce763 commit bbf21c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ProgramOptions.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,9 +1676,9 @@ namespace po {
16761676
if( !std::isalpha( short_option ) )
16771677
return;
16781678
if( std::islower( short_option ) )
1679-
short_option = std::toupper( short_option );
1679+
short_option = static_cast< char >( std::toupper( short_option ) );
16801680
else // if( std::isupper( short_option ) )
1681-
short_option = std::tolower( short_option );
1681+
short_option = static_cast< char >( std::tolower( short_option ) );
16821682
if( find_abbreviation( short_option ) != m_options.end() )
16831683
*m_output_destination << suggest( std::string{ '-', short_option } );
16841684
}

0 commit comments

Comments
 (0)