mirror of
https://github.com/nlohmann/json
synced 2024-11-15 08:40:05 +00:00
🚨 fix UBSAN warning
This commit is contained in:
parent
bba57cc4af
commit
0cd120f7e1
@ -515,7 +515,7 @@ TEST_CASE("MessagePack")
|
||||
(static_cast<uint32_t>(result[2]) << 020) +
|
||||
(static_cast<uint32_t>(result[3]) << 010) +
|
||||
static_cast<uint32_t>(result[4]);
|
||||
CHECK(restored == i);
|
||||
CHECK(static_cast<std::int32_t>(restored) == i);
|
||||
|
||||
// roundtrip
|
||||
CHECK(json::from_msgpack(result) == j);
|
||||
|
Loading…
Reference in New Issue
Block a user