We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 629b7aa commit eba3f22Copy full SHA for eba3f22
include/sketch/sketch_columns.h
@@ -122,7 +122,11 @@ class ResizeableSketchColumn {
122
}
123
124
bool operator==(const ResizeableSketchColumn &other) const {
125
- for (size_t i = 0; i < capacity; ++i) {
+ size_t other_depth = other.get_depth();
126
+ if (get_depth() != other_depth) {
127
+ return false;
128
+ }
129
+ for (size_t i = 0; i < other_depth; ++i) {
130
if (aligned_buckets[i] != other.aligned_buckets[i]) {
131
return false;
132
0 commit comments