We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d77bd7 commit 026f837Copy full SHA for 026f837
1 file changed
include/sketch/sketch_columns.h
@@ -66,7 +66,7 @@ FixedSizeSketchColumn::~FixedSizeSketchColumn() {
66
uint8_t FixedSizeSketchColumn::get_depth() const {
67
for (size_t i = capacity; i > 0; --i) {
68
if (!Bucket_Boruvka::is_empty(buckets[i - 1])) {
69
- return i - 1;
+ return i;
70
}
71
72
return 0;
@@ -228,7 +228,7 @@ uint8_t ResizeableSketchColumn::get_depth() const {
228
// TODO - maybe rely on flag vectors
229
230
if (!Bucket_Boruvka::is_empty(aligned_buckets[i - 1])) {
231
232
233
234
0 commit comments