mirror of
https://github.com/nlohmann/json.git
synced 2026-02-09 23:52:15 +00:00
🚨 fix UBSAN warnings
This commit is contained in:
@@ -1580,7 +1580,7 @@ TEST_CASE("single CBOR roundtrip")
|
||||
{
|
||||
SECTION("std::ostringstream")
|
||||
{
|
||||
std::ostringstream ss;
|
||||
std::basic_ostringstream<std::uint8_t> ss;
|
||||
json::to_cbor(j1, ss);
|
||||
json j3 = json::from_cbor(ss.str());
|
||||
CHECK(j1 == j3);
|
||||
|
||||
Reference in New Issue
Block a user