Skip to content

Commit

Permalink
Fix type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKutzner committed Oct 8, 2024
1 parent e347c31 commit c43773f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/cista/containers/vecvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ struct basic_vecvec {
verify(n >= size(), "bucket::grow: new size < old size");
auto const growth = n - size();

map_->data_.insert(std::next(std::begin(map_->data_), bucket_end_idx()),
growth, value);
map_->data_.insert(
std::next(std::begin(map_->data_), bucket_end_idx()),
static_cast<typename decltype(map_->data_)::size_type>(growth),
value);
for (auto i = i_ + 1; i != map_->bucket_starts_.size(); ++i) {
map_->bucket_starts_[i] += growth;
}
Expand Down

0 comments on commit c43773f

Please sign in to comment.