Skip to content

Commit

Permalink
more disambiguation
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Mar 15, 2024
1 parent 5f89d09 commit dd9bf32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class Real_embeddable_extension< CORE::BigFloat > {
long operator()( CORE::BigFloat x ) const {
CGAL_precondition(!CGAL::zero_in(x));
x = CGAL::abs(x);
return CORE::floorLg(x.m()-x.err())+x.exp()*CORE::CHUNK_BIT;
return CORE::floorLg(CORE::BigInt(x.m()-x.err()))+x.exp()*CORE::CHUNK_BIT;
}
};

Expand Down
4 changes: 2 additions & 2 deletions CGAL_Core/include/CGAL/CORE/BigFloatRep.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ inline void BigFloatRep::eliminateTrailingZeroes() {
// builtin functions
inline extLong BigFloatRep::lMSB() const {
if (!isZeroIn())
return extLong(floorLg(abs(m) - err)) + bits(exp);
return extLong(floorLg(BigInt(abs(m) - err))) + bits(exp);
else
return extLong(CORE_negInfty);
}
Expand All @@ -327,7 +327,7 @@ inline extLong BigFloatRep::lMSB() const {
* Not well-defined if zero is in the interval.
*/
inline extLong BigFloatRep::uMSB() const {
return extLong(floorLg(abs(m) + err)) + bits(exp);
return extLong(floorLg(BigInt(abs(m) + err))) + bits(exp);
}

inline extLong BigFloatRep::MSB() const {
Expand Down

0 comments on commit dd9bf32

Please sign in to comment.