Skip to content

Commit

Permalink
Update bvec.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-james committed Feb 2, 2018
1 parent 452cde2 commit 2e3b234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cluster/src/bvec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bvec<T>::bvec(vector<uint64_t>& lengths, uint64_t bin_size)
std::sort(std::begin(lengths), std::end(lengths));
for (uint64_t i = 0; i < lengths.size(); i += bin_size) {
begin_bounds.push_back(lengths[i]);
uint64_t last_index = std::min(lengths.size() - 1,
uint64_t last_index = std::min((uint64_t)lengths.size() - 1,
i + bin_size - 1);
end_bounds.push_back(lengths[last_index]);
//std::cout << "[" << i << " " << last_index << "]" << std::endl;
Expand Down

0 comments on commit 2e3b234

Please sign in to comment.