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

Add asserts to suppress C28020

This commit is contained in:
jbzdarkid
2020-10-26 13:57:38 -07:00
parent fd7a9f6007
commit 64ff1cf90d
2 changed files with 2 additions and 0 deletions

View File

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

View File

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