Skip to content

Commit

Permalink
merge bitcoin#26272: Prevent UB in minisketch_tests.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Oct 27, 2024
1 parent 0cf7401 commit 477157d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/minisketch_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,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);
Expand Down

0 comments on commit 477157d

Please sign in to comment.