From 8981c376d34b82927d4b93e62988e9b1adf7c4cd Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 15 Mar 2024 09:39:05 +0100 Subject: [PATCH] casts for dealing with expression templates --- Arrangement_on_surface_2/include/CGAL/Arr_conic_traits_2.h | 4 ++-- CGAL_Core/include/CGAL/CORE/poly/Poly.tcc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_conic_traits_2.h b/Arrangement_on_surface_2/include/CGAL/Arr_conic_traits_2.h index 4f2071c4f73..fd0215a1a1e 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_conic_traits_2.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_conic_traits_2.h @@ -3822,9 +3822,9 @@ public: else { ys_end = m_nt_traits->solve_quadratic_equation(Integer(four*r*s*s - s*t*t), Integer(four*r*s*v - two*s*t*u), - Integer(r*v*v - t*u*v) + - Integer(t*t*w), + Integer((r*v*v - t*u*v) + (t*t*w)), ys); + n_ys = static_cast(ys_end - ys); } diff --git a/CGAL_Core/include/CGAL/CORE/poly/Poly.tcc b/CGAL_Core/include/CGAL/CORE/poly/Poly.tcc index 2352ac76339..8e95f92189c 100644 --- a/CGAL_Core/include/CGAL/CORE/poly/Poly.tcc +++ b/CGAL_Core/include/CGAL/CORE/poly/Poly.tcc @@ -922,7 +922,7 @@ BigInt Polynomial::CauchyBound() const { /* compute B^{deg} */ if (rhs <= lhs) { B <<= 1; - rhs *= (BigInt(1)<::UpperBound() const { /* compute B^{deg} */ if (rhs <= (std::max)(lhsPos,lhsNeg)) { B <<= 1; - rhs *= (BigInt(1)<