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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

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)