Skip to content

Commit 79cb75c

Browse files
committed
fix: check length for equal
1 parent 4894e5e commit 79cb75c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tuple/include/array_tuple_sketch.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class array {
8282
T* data() { return array_; }
8383
const T* data() const { return array_; }
8484
bool operator==(const array& other) const {
85+
if (size_ != other.size_) return false;
8586
for (uint8_t i = 0; i < size_; ++i) if (array_[i] != other.array_[i]) return false;
8687
return true;
8788
}

0 commit comments

Comments
 (0)