From 98083798c718921d0838f419fa7604310a55c051 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Sep 2022 19:11:17 -0400 Subject: Fix uninitialized variable --- test/test_gray_code_rank.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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& ms, const size_t d, const size_t step) { T mask = make_zero_bitvec(); - size_t b; + size_t b = 0U; chilbert::detail::extract_mask(ms.data(), D, d, step, mask, b); assert(b == mask.count()); -- cgit v1.2.1