diff --git a/include/internal/catch_common.hpp b/include/internal/catch_common.hpp index 2342ae61..87743ccb 100644 --- a/include/internal/catch_common.hpp +++ b/include/internal/catch_common.hpp @@ -22,7 +22,8 @@ namespace Catch { return s.find( infix ) != std::string::npos; } void toLowerInPlace( std::string& s ) { - std::transform( s.begin(), s.end(), s.begin(), ::tolower ); + std::transform( s.begin(), s.end(), s.begin(), + [](char c) { return static_cast(::tolower(c)); } ); } std::string toLower( std::string const& s ) { std::string lc = s;