Skip to content

Commit

Permalink
casts for dealing with expression templates
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Mar 15, 2024
1 parent 694099b commit 8981c37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Arrangement_on_surface_2/include/CGAL/Arr_conic_traits_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -3822,9 +3822,9 @@ class Arr_conic_traits_2 {
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<int>(ys_end - ys);
}

Expand Down
4 changes: 2 additions & 2 deletions CGAL_Core/include/CGAL/CORE/poly/Poly.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ BigInt Polynomial<NT>::CauchyBound() const {
/* compute B^{deg} */
if (rhs <= lhs) {
B <<= 1;
rhs *= (BigInt(1)<<deg);
rhs *= BigFloat(BigInt(BigInt(1)<<deg));
} else
break;
}
Expand Down Expand Up @@ -959,7 +959,7 @@ BigInt Polynomial<NT>::UpperBound() const {
/* compute B^{deg} */
if (rhs <= (std::max)(lhsPos,lhsNeg)) {
B <<= 1;
rhs *= (BigInt(1)<<deg);
rhs *= BigFloat(BigInt(BigInt(1)<<deg));
} else
break;
}
Expand Down

0 comments on commit 8981c37

Please sign in to comment.