mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 05:45:39 +02:00
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