🚨 fix UBSAN warnings

This commit is contained in:
Niels Lohmann committed 2019-11-03 13:48:25 +01:00
1 parent 0db1692f45
commit dfe53c36da
4 files changed
+30 -25

No files matched your search

+1 -1
View File
@@ -1334,7 +1334,7 @@ TEST_CASE("single MessagePack roundtrip")
{
SECTION("std::ostringstream")
{
std::ostringstream ss;
std::basic_ostringstream<std::uint8_t> ss;
json::to_msgpack(j1, ss);
json j3 = json::from_msgpack(ss.str());
CHECK(j1 == j3);