We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eba3f22 commit 78cf14dCopy full SHA for 78cf14d
src/sketch_columns.cpp
@@ -91,8 +91,9 @@ void ResizeableSketchColumn::reallocate(uint8_t new_capacity) {
91
auto new_buckets = hwy::AllocateAligned<Bucket>(new_capacity);
92
std::memset(new_buckets.get() + capacity, 0,
93
(resize_capacity - capacity) * sizeof(Bucket));
94
+ // old capacity:
95
std::memcpy(new_buckets.get(), aligned_buckets.get(),
- resize_capacity * sizeof(Bucket));
96
+ capacity * sizeof(Bucket));
97
aligned_buckets = std::move(new_buckets);
98
capacity = new_capacity;
99
}
0 commit comments