🚨 fix UBSAN warning
This commit is contained in:
parent
bba57cc4af
commit
0cd120f7e1
1 changed files with 1 additions and 1 deletions
|
@ -515,7 +515,7 @@ TEST_CASE("MessagePack")
|
||||||
(static_cast<uint32_t>(result[2]) << 020) +
|
(static_cast<uint32_t>(result[2]) << 020) +
|
||||||
(static_cast<uint32_t>(result[3]) << 010) +
|
(static_cast<uint32_t>(result[3]) << 010) +
|
||||||
static_cast<uint32_t>(result[4]);
|
static_cast<uint32_t>(result[4]);
|
||||||
CHECK(restored == i);
|
CHECK(static_cast<std::int32_t>(restored) == i);
|
||||||
|
|
||||||
// roundtrip
|
// roundtrip
|
||||||
CHECK(json::from_msgpack(result) == j);
|
CHECK(json::from_msgpack(result) == j);
|
||||||
|
|
Loading…
Reference in a new issue