diff --git a/src/common/String.h b/src/common/String.h index a709e83c5..06889a2b8 100644 --- a/src/common/String.h +++ b/src/common/String.h @@ -510,7 +510,7 @@ public: String value(*this); for(value_type &ch : value) if(ch <= std::numeric_limits::max()) - ch = std::tolower(ch, loc); + ch = std::tolower(static_cast(ch), loc); return value; } @@ -520,7 +520,7 @@ public: String value(*this); for(value_type &ch : value) if(ch <= std::numeric_limits::max()) - ch = std::toupper(ch, loc); + ch = std::toupper(static_cast(ch), loc); return value; }