Skip to content

Commit

Permalink
Use float in bignum sqrt
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed Sep 3, 2024
1 parent 90a6190 commit 02e6d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/numbers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1894,7 +1894,7 @@ Number_sp LongFloat_O::sqrt_() const { return _sqrt(_Value); }

Number_sp Complex_O::sqrt_() const { return cl__expt(this->asSmartPtr(), _lisp->plusHalf()); }

Number_sp Bignum_O::sqrt_() const { return _sqrt(cast<double>()); }
Number_sp Bignum_O::sqrt_() const { return _sqrt(cast<float>()); }

Number_sp Bignum_O::reciprocal_() const {
if (this->minusp_())
Expand Down

0 comments on commit 02e6d6f

Please sign in to comment.