mirror of
https://github.com/nlohmann/json.git
synced 2026-11-01 18:35:34 +00:00
Merge branch 'perf/cbor-scalar-runs' into perf/binary-reader-byteswap
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
2 files changed
+4
No files matched your search
@@ -1720,6 +1720,8 @@ class binary_reader
|
|||||||
const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
|
const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
|
||||||
const unsigned char head = data[0];
|
const unsigned char head = data[0];
|
||||||
std::size_t size = 0;
|
std::size_t size = 0;
|
||||||
|
// false positive: every case assigns accepted before it is read
|
||||||
|
// @infer-ignore DEAD_STORE
|
||||||
bool accepted = true;
|
bool accepted = true;
|
||||||
switch (head)
|
switch (head)
|
||||||
{
|
{
|
||||||
|
|||||||
Generated
+2
@@ -19497,6 +19497,8 @@ class binary_reader
|
|||||||
const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
|
const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
|
||||||
const unsigned char head = data[0];
|
const unsigned char head = data[0];
|
||||||
std::size_t size = 0;
|
std::size_t size = 0;
|
||||||
|
// false positive: every case assigns accepted before it is read
|
||||||
|
// @infer-ignore DEAD_STORE
|
||||||
bool accepted = true;
|
bool accepted = true;
|
||||||
switch (head)
|
switch (head)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user