aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-09-16 19:11:17 -0400
committerDavid Robillard <d@drobilla.net>2022-09-16 22:31:06 -0400
commit98083798c718921d0838f419fa7604310a55c051 (patch)
tree0efc36161d890984edb740df8ede529cf4ee903b /test
parent5d0f04e89192754b8b2de11adcbebcf7919e3a08 (diff)
downloadchilbert-98083798c718921d0838f419fa7604310a55c051.tar.gz
chilbert-98083798c718921d0838f419fa7604310a55c051.tar.bz2
chilbert-98083798c718921d0838f419fa7604310a55c051.zip
Fix uninitialized variable
Diffstat (limited to 'test')
-rw-r--r--test/test_gray_code_rank.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_gray_code_rank.cpp b/test/test_gray_code_rank.cpp
index 05f1ae1..3b6f9bb 100644
--- a/test/test_gray_code_rank.cpp
+++ b/test/test_gray_code_rank.cpp
@@ -38,7 +38,7 @@ T
get_mask(const std::array<size_t, D>& ms, const size_t d, const size_t step)
{
T mask = make_zero_bitvec<T, D>();
- size_t b;
+ size_t b = 0U;
chilbert::detail::extract_mask(ms.data(), D, d, step, mask, b);
assert(b == mask.count());