Commit e9842c1e authored by Rico Mariani's avatar Rico Mariani Committed by Facebook Github Bot

Folly warning correction -- the author clearly intended unsigned math

Summary:
Folly warning correction -- the author clearly intended unsigned math

Fixes #923.

Reviewed By: yfeldblum

Differential Revision: D9508962

fbshipit-source-id: 0ffa1b25f7c427030987cc5ba03c6e7f160a335b
parent fa714810
......@@ -602,9 +602,9 @@ dynamic parseValue(Input& in) {
std::array<uint64_t, 2> buildExtraAsciiToEscapeBitmap(StringPiece chars) {
std::array<uint64_t, 2> escapes{{0, 0}};
for (const char c : chars) {
if (c >= 0x20 && c < 0x80) {
escapes[c / 64] |= uint64_t(1) << (c % 64);
for (auto b : ByteRange(chars)) {
if (b >= 0x20 && b < 0x80) {
escapes[b / 64] |= uint64_t(1) << (b % 64);
}
}
return escapes;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment