Skip to content

Commit

Permalink
Fix default constructor of bit vector (size was not initialized)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurpicz committed Dec 12, 2022
1 parent 9d7ad07 commit 8607d0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/pasta/bit_vector/bit_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ class BitVector {

private:
//! Size of the bit vector in bits.
size_t bit_size_;
size_t bit_size_ = 0;
//! Size of the underlying data used to store the bits.
size_t size_;
size_t size_ = 0;
//! Array of 64-bit words used to store the content of the bit vector.
tlx::SimpleVector<RawDataType, tlx::SimpleVectorMode::NoInitNoDestroy> data_;
//! Pointer to the raw data of the bit vector.
RawDataPointer raw_data_;
RawDataPointer raw_data_ = nullptr;

public:
/*!
Expand Down

0 comments on commit 8607d0a

Please sign in to comment.