Skip to content

Commit

Permalink
avoid another warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Mar 22, 2024
1 parent 93c94ca commit 5b88dfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CGAL_Core/include/CGAL/CORE/BigInt.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ inline long ceilLg(const BigInt& a) {
if (sign(a) == 0)
return -1;
assert(std::size_t((std::numeric_limits<long>::max)()) > bitLength(a));
long len = static_cast<long>(bitLength(a));
std::size_t len = static_cast<long>(bitLength(a));

return (lsb(abs(a)) == len - 1) ? (len - 1) : len;
return (lsb(abs(a)) == len - 1) ? (static_cast<long>(len) - 1) : static_cast<long>(len);
}

inline long ceilLg(long a) { // need this for Polynomial<long>
Expand Down

0 comments on commit 5b88dfa

Please sign in to comment.