We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99c7379 commit 2e8137fCopy full SHA for 2e8137f
1 file changed
lang/c++/impl/json/JsonIO.cc
@@ -293,13 +293,11 @@ JsonParser::Token JsonParser::tryString() {
293
break;
294
case 'u':
295
case 'U': {
296
- uint32_t n = 0;
297
char e[4];
298
in_.readBytes(reinterpret_cast<uint8_t *>(e), 4);
299
sv.push_back('\\');
300
sv.push_back(ch);
301
for (char c : e) {
302
- n *= 16;
303
if (isdigit(c) || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F')) {
304
sv.push_back(c);
305
} else {
0 commit comments