Cleanup: Fix uninitialized variable warning in bit span test

This commit is contained in:
Hans Goudey 2023-05-23 13:15:21 -04:00
parent ec1349c62d
commit f78639ff9f
1 changed files with 2 additions and 2 deletions

View File

@ -214,13 +214,13 @@ TEST(bit_span, InPlaceOr)
TEST(bit_span, InPlaceAnd)
{
std::array<uint64_t, 100> data_1;
std::array<uint64_t, 100> data_1{};
MutableBitSpan span_1(data_1.data(), data_1.size() * BitsPerInt);
for (const int i : span_1.index_range()) {
span_1[i].set(i % 2 == 0);
}
std::array<uint64_t, 100> data_2;
std::array<uint64_t, 100> data_2{};
MutableBitSpan span_2(data_2.data(), data_2.size() * BitsPerInt);
for (const int i : span_2.index_range()) {
span_2[i].set(i % 2 != 0);