Skip to content

Commit 22f1419

Browse files
committed
Fixes for GCC-16 tolerances
1 parent a7ded46 commit 22f1419

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_cmath.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ void test_nearbyint()
978978
// Float goes to even while decimal is to nearest from zero
979979
float iptr {};
980980
const auto frac {std::modf(val1, &iptr)};
981-
if (std::abs(frac) <= 0.5F && std::abs(frac) >= 0.49F)
981+
if (std::abs(frac) <= 0.51F && std::abs(frac) >= 0.49F)
982982
{
983983
continue;
984984
}

test/test_erf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ void test_erfc()
566566
const auto dec_res {static_cast<float_type>(erfc(dec_val))};
567567
const auto distance {boost::math::float_distance(float_res, dec_res)};
568568

569-
if (!BOOST_TEST(distance < 150))
569+
if (!BOOST_TEST(distance < 200))
570570
{
571571
// LCOV_EXCL_START
572572
std::cerr << " Val: " << val

0 commit comments

Comments
 (0)