Commit 5ba812d5 authored by Julian Becker's avatar Julian Becker

BSON: fixed incorrect casting in unit-bson.cpp

parent 8de10c51
......@@ -869,7 +869,7 @@ TEST_CASE("BSON numerical data")
};
CHECK(j.at("entry").is_number_integer());
std::uint64_t iu = *reinterpret_cast<std::uint64_t*>(&i);
std::uint32_t iu = *reinterpret_cast<std::uint32_t*>(&i);
std::vector<uint8_t> expected_bson =
{
0x10u, 0x00u, 0x00u, 0x00u, // size (little endian)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment