forked from catchorg/Catch2
fixing UB
This commit is contained in:
committed by
Martin Hořeňovský
parent
b1b5cb8122
commit
6c6ebe374a
@@ -18,7 +18,7 @@ namespace Catch {
|
||||
|
||||
namespace {
|
||||
char toLowerCh(char c) {
|
||||
return static_cast<char>( std::tolower( c ) );
|
||||
return static_cast<char>( std::tolower( static_cast<unsigned char>(c) ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user