summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-12-04 18:05:26 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-12-04 18:05:26 +0000
commit7edf883bae03d6406115fe0e27ca712f3f074e13 (patch)
tree5b20a16adc2f207aed3436b28932888a5ca620b1
parente84790e91425e268d7bef937e51205478b6b4dcc (diff)
downloadmpfr-7edf883bae03d6406115fe0e27ca712f3f074e13.tar.gz
[src/mpfr-mini-gmp.c] Fixed types.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13314 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--src/mpfr-mini-gmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mpfr-mini-gmp.c b/src/mpfr-mini-gmp.c
index f6b2f81eb..f84e25a69 100644
--- a/src/mpfr-mini-gmp.c
+++ b/src/mpfr-mini-gmp.c
@@ -98,7 +98,8 @@ mpz_urandomb (mpz_t rop, gmp_randstate_t state, mp_bitcnt_t nbits)
unsigned long
gmp_urandomm_ui (gmp_randstate_t state, unsigned long n)
{
- unsigned long p, q, r;
+ mp_limb_t p, q;
+ unsigned long r;
MPFR_STAT_STATIC_ASSERT (ULONG_MAX <= MPFR_LIMB_MAX);
MPFR_ASSERTD(n <= MPFR_LIMB_MAX);