From 464e23bbb3da9bc41a77597a6b694ee016410a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 20 Apr 2022 07:19:01 +0200 Subject: [PATCH] update bounds as it is not deterministic accross platforms --- Number_types/test/Number_types/to_interval_test_boost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Number_types/test/Number_types/to_interval_test_boost.cpp b/Number_types/test/Number_types/to_interval_test_boost.cpp index d3ea2435330..a317155e079 100644 --- a/Number_types/test/Number_types/to_interval_test_boost.cpp +++ b/Number_types/test/Number_types/to_interval_test_boost.cpp @@ -808,8 +808,8 @@ void test_shift_positive() { auto shift = std::numeric_limits::max_exponent - std::numeric_limits::digits + 1; auto r = CGAL::Boost_MP_internal::shift_positive_interval({d,d},shift); d = ldexp(d,shift); - assert(isinf(d)); - assert(r.first < d && d <= r.second); + assert(d >= (std::numeric_limits::max)()); + assert(r.first <= d && d <= r.second); } { double d = (1L << 53) - 1;