Skip to content

Commit

Permalink
spot fix open-source-parsers#1171: isprint argument must be represent…
Browse files Browse the repository at this point in the history
…able as unsigned char (open-source-parsers#1173)
  • Loading branch information
BillyDonahue authored May 13, 2020
1 parent e36cff1 commit 75b360a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib_json/json_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ String valueToString(bool value) { return value ? "true" : "false"; }
static bool isAnyCharRequiredQuoting(char const* s, size_t n) {
assert(s || !n);

return std::any_of(s, s + n, [](int c) {
return std::any_of(s, s + n, [](unsigned char c) {
return c == '\\' || c == '"' || !std::isprint(c);
});
}
Expand Down

0 comments on commit 75b360a

Please sign in to comment.