diff options
author | David Robillard <d@drobilla.net> | 2022-09-16 19:36:15 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-16 22:31:06 -0400 |
commit | 6ff6556a531e06217fe5e7ad86d2093b3c79ea7c (patch) | |
tree | d4ea2e353065b2d777bb8586e0160c2d667479a6 /include | |
parent | 012b0de29906af6402a05a95eed0253a662df78b (diff) | |
download | chilbert-6ff6556a531e06217fe5e7ad86d2093b3c79ea7c.tar.gz chilbert-6ff6556a531e06217fe5e7ad86d2093b3c79ea7c.tar.bz2 chilbert-6ff6556a531e06217fe5e7ad86d2093b3c79ea7c.zip |
Fix uninitialized members
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); } |