Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
a very big long cannot be converted without loss to a double. This
should not make a difference in our application.
  • Loading branch information
saraedum committed Dec 19, 2023
1 parent b7a7d74 commit 0f194a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexactreal/src/real_number_product.cc
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ Arf RealNumberProduct::arf_(long prec) const {
// ulp.
long nfactors = totalDegree();

long workingPrec = prec + static_cast<long>(ceil(log2(nfactors * 2 + (nfactors - 1)) + 1));
long workingPrec = prec + static_cast<long>(ceil(log2(static_cast<double>(nfactors * 2 + (nfactors - 1)) + 1)));

Arf ret(1);
for (size_t i = 0; i < monomials.size(); i++)
Expand Down

0 comments on commit 0f194a8

Please sign in to comment.