1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-28 12:02:00 +03:00

Apply suggestions from code review

Co-authored-by: Niels Lohmann <niels.lohmann@gmail.com>
This commit is contained in:
Joseph Blackman
2020-11-24 11:02:58 -08:00
committed by GitHub
parent 64ff1cf90d
commit 9f45d314d5
2 changed files with 2 additions and 2 deletions

View File

@ -16392,7 +16392,7 @@ class serializer
}
};
JSON_ASSERT(byte < 400);
JSON_ASSERT(byte < utf8d.size());
const std::uint8_t type = utf8d[byte];
codep = (state != UTF8_ACCEPT)