summaryrefslogtreecommitdiff
path: root/src/random_deviate.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-08-21 13:31:33 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-08-21 13:31:33 +0000
commitcf07612e0309cb9ce623c74cd7933364a9ca2dce (patch)
tree4259496b625979543ed65533984088910ed81368 /src/random_deviate.c
parent589e4748934cf2108be8564665f73bf1c4be4056 (diff)
downloadmpfr-cf07612e0309cb9ce623c74cd7933364a9ca2dce.tar.gz
[src,tests] Consistency: in prototypes, changed
const mpfr_t to mpfr_srcptr mpfr_t to mpfr_ptr (except for mpfr_t *), as this is equivalent (the array is converted to a pointer) and the mpfr_srcptr/mpfr_ptr form is the usual one. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14103 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/random_deviate.c')
-rw-r--r--src/random_deviate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/random_deviate.c b/src/random_deviate.c
index 72531e774..3d875c6ea 100644
--- a/src/random_deviate.c
+++ b/src/random_deviate.c
@@ -280,7 +280,7 @@ mpfr_random_deviate_less (mpfr_random_deviate_t x, mpfr_random_deviate_t y,
/* set mpfr_t z = (neg ? -1 : 1) * (n + x) */
int
mpfr_random_deviate_value (int neg, unsigned long n,
- mpfr_random_deviate_t x, mpfr_t z,
+ mpfr_random_deviate_t x, mpfr_ptr z,
gmp_randstate_t r, mpfr_rnd_t rnd)
{
/* r is used to add as many bits as necessary to match the precision of z */