From d6362ed363c4a52edc9136df2334f994c42082cb Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sat, 30 Nov 2024 08:27:32 +0000 Subject: automatic import of boost --- ...iprecision_float_test.cpp-to-not-overflow.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 boost-1.81-random-Update-multiprecision_float_test.cpp-to-not-overflow.patch (limited to 'boost-1.81-random-Update-multiprecision_float_test.cpp-to-not-overflow.patch') diff --git a/boost-1.81-random-Update-multiprecision_float_test.cpp-to-not-overflow.patch b/boost-1.81-random-Update-multiprecision_float_test.cpp-to-not-overflow.patch new file mode 100644 index 0000000..cba902b --- /dev/null +++ b/boost-1.81-random-Update-multiprecision_float_test.cpp-to-not-overflow.patch @@ -0,0 +1,30 @@ +From 4239d93dad32a11e4c3829050f8070d456266133 Mon Sep 17 00:00:00 2001 +From: jzmaddock +Date: Wed, 1 Jun 2022 19:35:36 +0100 +Subject: [PATCH] Update multiprecision_float_test.cpp to not overflow type + double. Previously the max value for uint1024_t could just squeeze into a + double because truncation occurred during the conversion, now that cpp_int + performs correctly rounded conversions, overflow occurs, and the computation + fails. Changed the problem distribution to use a multiprecision weight type, + rather than double. + +--- + libs/random/test/multiprecision_float_test.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libs/random/test/multiprecision_float_test.cpp b/libs/random/test/multiprecision_float_test.cpp +index bc2a936..2b53483 100644 +--- a/libs/random/test/multiprecision_float_test.cpp ++++ b/libs/random/test/multiprecision_float_test.cpp +@@ -77,7 +77,7 @@ typedef boost::mpl::list < + boost::random::lognormal_distribution, + boost::random::normal_distribution, + #ifndef BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS +- boost::random::piecewise_constant_distribution, ++ boost::random::piecewise_constant_distribution, + boost::random::piecewise_linear_distribution, + #endif + boost::random::student_t_distribution, +-- +2.33.0 + -- cgit v1.2.3