From 01215ded0415f2d49b552951328c6b7483aeea59 Mon Sep 17 00:00:00 2001 From: SlowRiot Date: Sat, 11 Jan 2025 16:21:49 +0000 Subject: [PATCH] amalgamate --- single_include/nlohmann/json.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 2063883c39..e000f94a28 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -16733,15 +16733,11 @@ class binary_writer write_bson_entry_header(name, 0x10 /* int32 */); write_number(static_cast(j.m_data.m_value.number_unsigned), true); } - else if (j.m_data.m_value.number_unsigned <= std::numeric_limits::max()) + else { write_bson_entry_header(name, 0x11 /* uint64 */); write_number(static_cast(j.m_data.m_value.number_unsigned), true); } - else - { - JSON_THROW(out_of_range::create(407, concat("unsigned integer number ", std::to_string(j.m_data.m_value.number_unsigned), " cannot be represented by BSON as it does not fit into uint64"), &j)); - } } /*!