Skip to content
Permalink
Browse files
add const
changes based on review feedback
  • Loading branch information
jmalkin committed May 13, 2022
1 parent 8c63080 commit 2c63c0e8d1675c807c866c600362412780972862
Showing 1 changed file with 2 additions and 2 deletions.
@@ -162,7 +162,7 @@ is_sorted_(false)
max_value_ = new (allocator_.allocate(1)) T(other.get_max_value());

// reserve space in levels
uint8_t num_levels = compute_levels_needed(k_, n_);
const uint8_t num_levels = compute_levels_needed(k_, n_);
levels_.reserve(num_levels);
for (int i = 0; i < num_levels; ++i) {
Level level(allocator);
@@ -172,7 +172,7 @@ is_sorted_(false)

// iterate through points, assigning to the correct level as needed
for (auto pair : other) {
uint64_t wt = pair.second;
const uint64_t wt = pair.second;
if (wt == 1) {
base_buffer_.push_back(pair.first);
// resize where needed as if adding points via update()

0 comments on commit 2c63c0e

Please sign in to comment.