Skip to content

Commit

Permalink
add explicit casts around std::is{upper|lower} calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Fytch committed Apr 30, 2018
1 parent a7ce763 commit bbf21c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ProgramOptions.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -1676,9 +1676,9 @@ namespace po {
if( !std::isalpha( short_option ) )
return;
if( std::islower( short_option ) )
short_option = std::toupper( short_option );
short_option = static_cast< char >( std::toupper( short_option ) );
else // if( std::isupper( short_option ) )
short_option = std::tolower( short_option );
short_option = static_cast< char >( std::tolower( short_option ) );
if( find_abbreviation( short_option ) != m_options.end() )
*m_output_destination << suggest( std::string{ '-', short_option } );
}
Expand Down

0 comments on commit bbf21c0

Please sign in to comment.