summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-03-16 10:57:40 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-03-16 10:57:40 +0000
commit8d150fcf2a18ca4547f984aafc75a8dd4bcb9f5d (patch)
tree2ef9ee067e082370d4e65b0e6ddbb9c2e2ae1ed4
parent957ff5f42f80e7ec4c7da1507c03390f471551dd (diff)
downloadmpfr-8d150fcf2a18ca4547f984aafc75a8dd4bcb9f5d.tar.gz
[src/root.c] Removed useless cast in a comparison, as both operands are
non-negative. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13794 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--src/root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/root.c b/src/root.c
index 07ed7f24d..a8bd7d04e 100644
--- a/src/root.c
+++ b/src/root.c
@@ -161,7 +161,7 @@ mpfr_rootn_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long k, mpfr_rnd_t rnd_mode)
sh = tmp - n;
if (sh > 0) /* we have to flush to 0 the last sh bits from m */
{
- inexact = inexact || ((mpfr_exp_t) mpz_scan1 (m, 0) < sh);
+ inexact = inexact || (mpz_scan1 (m, 0) < sh);
mpz_fdiv_q_2exp (m, m, sh);
e += k * sh;
}