mirror of
https://github.com/nlohmann/json.git
synced 2026-10-22 05:58:12 +00:00
BSON: fixed incorrect casting in unit-bson.cpp
This commit is contained in:
1 parent
8de10c518b
commit
5ba812d518
1 file changed
+1
-1
@@ -869,7 +869,7 @@ TEST_CASE("BSON numerical data")
|
|||||||
};
|
};
|
||||||
CHECK(j.at("entry").is_number_integer());
|
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 =
|
std::vector<uint8_t> expected_bson =
|
||||||
{
|
{
|
||||||
0x10u, 0x00u, 0x00u, 0x00u, // size (little endian)
|
0x10u, 0x00u, 0x00u, 0x00u, // size (little endian)
|
||||||
|
|||||||
Reference in new issue
Block a user