mirror of
https://github.com/nlohmann/json
synced 2024-11-22 20:10:06 +00:00
🚨 fixed a linter warning
This commit is contained in:
parent
45a761bd60
commit
7d0dc10169
@ -988,7 +988,7 @@ class binary_writer
|
||||
*/
|
||||
static std::size_t calc_bson_object_size(const typename BasicJsonType::object_t& value)
|
||||
{
|
||||
std::size_t document_size = std::accumulate(value.begin(), value.end(), 0,
|
||||
std::size_t document_size = std::accumulate(value.begin(), value.end(), 0ul,
|
||||
[](size_t result, const typename BasicJsonType::object_t::value_type & el)
|
||||
{
|
||||
return result += calc_bson_element_size(el.first, el.second);
|
||||
|
@ -9307,7 +9307,7 @@ class binary_writer
|
||||
*/
|
||||
static std::size_t calc_bson_object_size(const typename BasicJsonType::object_t& value)
|
||||
{
|
||||
std::size_t document_size = std::accumulate(value.begin(), value.end(), 0,
|
||||
std::size_t document_size = std::accumulate(value.begin(), value.end(), 0ul,
|
||||
[](size_t result, const typename BasicJsonType::object_t::value_type & el)
|
||||
{
|
||||
return result += calc_bson_element_size(el.first, el.second);
|
||||
|
Loading…
Reference in New Issue
Block a user