Skip to content

Commit 42bd2b5

Browse files
committed
[#3256] address review
1 parent f5eb659 commit 42bd2b5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Diff for: src/lib/cc/data.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ StringElement::toJSON(std::ostream& ss) const {
902902
ss << '\\' << 't';
903903
break;
904904
default:
905-
if (((c >= 0) && (c < 0x20)) || (c < 0) || (c >= 0x7f)) {
905+
if (c < 0x20 || c == 0x7f) {
906906
std::ostringstream esc;
907907
esc << "\\u"
908908
<< hex

Diff for: src/lib/http/http_message_parser_base.cc

-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ HttpMessageParserBase::popNextFromBuffer(std::string& next, const size_t limit)
262262

263263
bool
264264
HttpMessageParserBase::isChar(const signed char c) const {
265-
// was (c >= 0) && (c <= 127)
266265
return (c >= 0);
267266
}
268267

0 commit comments

Comments
 (0)