diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-01-27 10:56:44 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-01-27 10:56:44 +0000 |
commit | 6e38fda01d42c61db41a5c3b1091316436c70aee (patch) | |
tree | 54d04116f8dce35dd99e0e0588eeb79a9150f7bd /tests/tpow_z.c | |
parent | b365c7af309a36559062b9ebea82776ebfd3a103 (diff) | |
download | mpfr-6e38fda01d42c61db41a5c3b1091316436c70aee.tar.gz |
casts to allow compilation with g++
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3221 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tpow_z.c')
-rw-r--r-- | tests/tpow_z.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tpow_z.c b/tests/tpow_z.c index edbd621d5..b8ac6a421 100644 --- a/tests/tpow_z.c +++ b/tests/tpow_z.c @@ -137,7 +137,7 @@ static void check_special (void) { static void check_integer (mp_prec_t begin, mp_prec_t end, unsigned long max) { mpfr_t x, y1, y2; mpz_t z; - long i, n; + unsigned long i, n; mp_prec_t p; int res1, res2; mp_rnd_t rnd; @@ -152,7 +152,7 @@ static void check_integer (mp_prec_t begin, mp_prec_t end, unsigned long max) { mpz_random (z, (i&1) == 0 ? -1 : 1); mpfr_random (x); mpfr_mul_2ui (x, x, 1, GMP_RNDN); /* 0 <= x < 2 */ - rnd = RND_RAND (); + rnd = (mp_rnd_t) RND_RAND (); if (mpz_fits_slong_p (z)) { n = mpz_get_si (z); /* printf ("New test for x=%ld\nCheck Pow_si\n", n); */ |