casts for dealing with expression templates

This commit is contained in:
Andreas Fabri 2024-03-15 09:39:05 +01:00
parent 694099b6ec
commit 8981c376d3
2 changed files with 4 additions and 4 deletions

View File

@ -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<int>(ys_end - ys);
}

View File

@ -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;
}
@ -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;
}