diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-10-18 23:51:35 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-10-18 23:51:35 +0000 |
commit | 3a9b59c06853763c77d860f352060b0d0a908375 (patch) | |
tree | 3f0b42068020a16ce3075fe87ef1ff06f74b3a3e /tests/tcan_round.c | |
parent | 871711cfa5aaeacc7b80e22a82fa62ac15861f4d (diff) | |
download | mpfr-3a9b59c06853763c77d860f352060b0d0a908375.tar.gz |
[tests/tcan_round.c] Removed an incorrect cast, fixing a bug (in the
test) that was producing a failure for GMP_CHECK_RANDOMIZE=1287710095
on 64-bit machines (visible since mpfr_prec_t is now signed).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7215 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcan_round.c')
-rw-r--r-- | tests/tcan_round.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcan_round.c b/tests/tcan_round.c index 15beb2865..079afd0be 100644 --- a/tests/tcan_round.c +++ b/tests/tcan_round.c @@ -41,7 +41,7 @@ check_round_p (void) /* avoid mpn_random which leaks memory */ for (i = 0; i < n; i++) buf[i] = randlimb (); - p = (mpfr_prec_t) randlimb() % ((n-1) * GMP_NUMB_BITS) + MPFR_PREC_MIN; + p = randlimb() % ((n-1) * GMP_NUMB_BITS) + MPFR_PREC_MIN; err = p + randlimb () % GMP_NUMB_BITS; r1 = mpfr_round_p (buf, n, err, p); r2 = mpfr_can_round_raw (buf, n, MPFR_SIGN_POS, err, |