diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/chilbert/BoundedBitVec.hpp | 2 | ||||
-rw-r--r-- | include/chilbert/SmallBitVec.hpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/chilbert/BoundedBitVec.hpp b/include/chilbert/BoundedBitVec.hpp index fa414ca..4f9ef60 100644 --- a/include/chilbert/BoundedBitVec.hpp +++ b/include/chilbert/BoundedBitVec.hpp @@ -92,7 +92,7 @@ private: } std::array<Rack, calculate_num_racks(MaxN)> m_racks{}; - size_t m_size; + size_t m_size{}; }; namespace detail { diff --git a/include/chilbert/SmallBitVec.hpp b/include/chilbert/SmallBitVec.hpp index 10668ac..d9256c6 100644 --- a/include/chilbert/SmallBitVec.hpp +++ b/include/chilbert/SmallBitVec.hpp @@ -70,8 +70,7 @@ public: }; explicit SmallBitVec(const size_t bits) - : m_rack{0} - , m_size{bits} + : m_size{bits} { assert(bits <= bits_per_rack); } |