Unverified Commit 9f45d314 authored by Joseph Blackman's avatar Joseph Blackman Committed by GitHub

Apply suggestions from code review

Co-authored-by: default avatarNiels Lohmann <niels.lohmann@gmail.com>
parent 64ff1cf9
...@@ -881,7 +881,7 @@ class serializer ...@@ -881,7 +881,7 @@ class serializer
} }
}; };
JSON_ASSERT(byte < 400); JSON_ASSERT(byte < utf8d.size());
const std::uint8_t type = utf8d[byte]; const std::uint8_t type = utf8d[byte];
codep = (state != UTF8_ACCEPT) codep = (state != UTF8_ACCEPT)
......
...@@ -16392,7 +16392,7 @@ class serializer ...@@ -16392,7 +16392,7 @@ class serializer
} }
}; };
JSON_ASSERT(byte < 400); JSON_ASSERT(byte < utf8d.size());
const std::uint8_t type = utf8d[byte]; const std::uint8_t type = utf8d[byte];
codep = (state != UTF8_ACCEPT) codep = (state != UTF8_ACCEPT)
......
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