Skip to content

Commit 8607d0a

Browse files
committed
Fix default constructor of bit vector (size was not initialized)
1 parent 9d7ad07 commit 8607d0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/pasta/bit_vector/bit_vector.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ class BitVector {
209209

210210
private:
211211
//! Size of the bit vector in bits.
212-
size_t bit_size_;
212+
size_t bit_size_ = 0;
213213
//! Size of the underlying data used to store the bits.
214-
size_t size_;
214+
size_t size_ = 0;
215215
//! Array of 64-bit words used to store the content of the bit vector.
216216
tlx::SimpleVector<RawDataType, tlx::SimpleVectorMode::NoInitNoDestroy> data_;
217217
//! Pointer to the raw data of the bit vector.
218-
RawDataPointer raw_data_;
218+
RawDataPointer raw_data_ = nullptr;
219219

220220
public:
221221
/*!

0 commit comments

Comments
 (0)