From 8d150fcf2a18ca4547f984aafc75a8dd4bcb9f5d Mon Sep 17 00:00:00 2001 From: vlefevre Date: Mon, 16 Mar 2020 10:57:40 +0000 Subject: [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 --- src/root.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1