diff --git a/lib/errorlogger.cpp b/lib/errorlogger.cpp index b5ccd0a74..ec54d5f69 100644 --- a/lib/errorlogger.cpp +++ b/lib/errorlogger.cpp @@ -220,7 +220,7 @@ static std::string fixInvalidChars(const std::string& raw) result.reserve(raw.length()); std::string::const_iterator from=raw.begin(); while (from!=raw.end()) { - if (std::isprint(*from)) { + if (std::isprint(static_cast(*from))) { result.push_back(*from); } else { std::ostringstream es;