mirror of
https://github.com/nlohmann/json.git
synced 2026-11-20 02:05:19 +00:00
Add asserts to suppress C28020
This commit is contained in:
1 parent
fd7a9f6007
commit
64ff1cf90d
2 files changed
+2
No files matched your search
@@ -881,6 +881,7 @@ class serializer
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
JSON_ASSERT(byte < 400);
|
||||||
const std::uint8_t type = utf8d[byte];
|
const std::uint8_t type = utf8d[byte];
|
||||||
|
|
||||||
codep = (state != UTF8_ACCEPT)
|
codep = (state != UTF8_ACCEPT)
|
||||||
|
|||||||
@@ -16392,6 +16392,7 @@ class serializer
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
JSON_ASSERT(byte < 400);
|
||||||
const std::uint8_t type = utf8d[byte];
|
const std::uint8_t type = utf8d[byte];
|
||||||
|
|
||||||
codep = (state != UTF8_ACCEPT)
|
codep = (state != UTF8_ACCEPT)
|
||||||
|
|||||||
Reference in new issue
Block a user