From 0cd120f7e1f8cce7912f90bcc2846a209b8dc065 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Thu, 23 Jul 2020 14:06:09 +0200 Subject: [PATCH] :rotating_light: fix UBSAN warning --- test/src/unit-msgpack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/unit-msgpack.cpp b/test/src/unit-msgpack.cpp index 9275ad5e..c3761fb5 100644 --- a/test/src/unit-msgpack.cpp +++ b/test/src/unit-msgpack.cpp @@ -515,7 +515,7 @@ TEST_CASE("MessagePack") (static_cast(result[2]) << 020) + (static_cast(result[3]) << 010) + static_cast(result[4]); - CHECK(restored == i); + CHECK(static_cast(restored) == i); // roundtrip CHECK(json::from_msgpack(result) == j);