diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index 61e41534a..f8b804bbf 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -1634,8 +1634,8 @@ bool OurReader::decodeString(Token& token) { bool OurReader::decodeString(Token& token, String& decoded) { decoded.reserve(static_cast(token.end_ - token.start_ - 2)); - Location current = token.start_ + 1; // skip '"' - Location end = token.end_ - 1; // do not include '"' + Location current = token.start_ + 1; // skip '"' + Location end = token.end_ - 1; // do not include '"' while (current != end) { Char c = *current++; if (c == '"') {