mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-11 05:23:29 -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.index().empty()) {
|
||||||
if (v.packed_index()) {
|
if (v.packed_index()) {
|
||||||
expected_data_size =
|
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());
|
longest_item_len = *std::max_element(v.index().begin(), v.index().end());
|
||||||
} else {
|
} else {
|
||||||
auto idx = v.index();
|
auto idx = v.index();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user