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

Merge pull request #2447 from jbzdarkid/develop

Add asserts to suppress C28020
This commit is contained in:
Niels Lohmann
2020-12-11 13:27:52 +01:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

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