Fixed assertion failure in VS debug mode
This commit is contained in:
parent
a25cb53c19
commit
71264fb672
|
@ -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<unsigned char>(*from))) {
|
||||
result.push_back(*from);
|
||||
} else {
|
||||
std::ostringstream es;
|
||||
|
|
Loading…
Reference in New Issue