Skip to content

Commit 477157d

Browse files
committed
merge bitcoin#26272: Prevent UB in minisketch_tests.cpp
1 parent 0cf7401 commit 477157d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/minisketch_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ BOOST_AUTO_TEST_CASE(minisketch_test)
3838
Minisketch sketch_c = std::move(sketch_ar);
3939
sketch_c.Merge(sketch_br);
4040
auto dec = sketch_c.Decode(errors);
41-
BOOST_CHECK(dec.has_value());
41+
BOOST_REQUIRE(dec.has_value());
4242
auto sols = std::move(*dec);
4343
std::sort(sols.begin(), sols.end());
4444
for (uint32_t i = 0; i < a_not_b; ++i) BOOST_CHECK_EQUAL(sols[i], start_a + i);

0 commit comments

Comments
 (0)