mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
test: Prevent UB in minisketch_tests.cpp
This commit is contained in:
parent
5e82b9ba96
commit
97007e2b9b
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ BOOST_AUTO_TEST_CASE(minisketch_test)
|
|||
Minisketch sketch_c = std::move(sketch_ar);
|
||||
sketch_c.Merge(sketch_br);
|
||||
auto dec = sketch_c.Decode(errors);
|
||||
BOOST_CHECK(dec.has_value());
|
||||
BOOST_REQUIRE(dec.has_value());
|
||||
auto sols = std::move(*dec);
|
||||
std::sort(sols.begin(), sols.end());
|
||||
for (uint32_t i = 0; i < a_not_b; ++i) BOOST_CHECK_EQUAL(sols[i], start_a + i);
|
||||
|
|
Loading…
Add table
Reference in a new issue