fix(metadata_types): accumulate using the correct type

This commit is contained in:
Marcus Holland-Moritz 2025-03-16 00:00:12 +01:00
parent 14b69032fd
commit 654dff1e3d

View File

@ -499,7 +499,7 @@ void check_compact_strings(
if (!v.index().empty()) {
if (v.packed_index()) {
expected_data_size =
std::accumulate(v.index().begin(), v.index().end(), 0);
std::accumulate(v.index().begin(), v.index().end(), size_t{0});
longest_item_len = *std::max_element(v.index().begin(), v.index().end());
} else {
auto idx = v.index();