mirror of
https://github.com/nlohmann/json.git
synced 2024-11-24 14:59:00 +08:00
BSON: fixed incorrect casting in unit-bson.cpp
This commit is contained in:
parent
8de10c518b
commit
5ba812d518
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user