mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-09 12:28:13 -04:00
fix(metadata_types): accumulate using the correct type
This commit is contained in:
parent
14b69032fd
commit
654dff1e3d
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user