summaryrefslogtreecommitdiff
path: root/src/init2.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-02-09 14:15:10 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-02-09 14:15:10 +0000
commit06f792151f80bd77aff32929459b489711052b1d (patch)
tree517526ff6454637c0ba759c4b141a0f937be5473 /src/init2.c
parent43a3ef61e0d28a139e199ac8137ea641b30f0a5c (diff)
downloadmpfr-06f792151f80bd77aff32929459b489711052b1d.tar.gz
Added new types mpfr_limb_ptr and mpfr_limb_srcptr to src/mpfr-impl.h,
and replaced mp_ptr and mp_srcptr (GMP internals) by these 2 new types respectively. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7455 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/init2.c')
-rw-r--r--src/init2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init2.c b/src/init2.c
index 78194d138..e4329b666 100644
--- a/src/init2.c
+++ b/src/init2.c
@@ -26,7 +26,7 @@ void
mpfr_init2 (mpfr_ptr x, mpfr_prec_t p)
{
mp_size_t xsize;
- mp_ptr tmp;
+ mpfr_limb_ptr tmp;
/* Check if we can represent the number of limbs
* associated to the maximum of mpfr_prec_t*/
@@ -52,7 +52,7 @@ mpfr_init2 (mpfr_ptr x, mpfr_prec_t p)
MPFR_ASSERTN(p >= MPFR_PREC_MIN && p <= MPFR_PREC_MAX);
xsize = (mp_size_t) ((p - 1) / GMP_NUMB_BITS) + 1;
- tmp = (mp_ptr) (*__gmp_allocate_func)(MPFR_MALLOC_SIZE(xsize));
+ tmp = (mpfr_limb_ptr) (*__gmp_allocate_func)(MPFR_MALLOC_SIZE(xsize));
MPFR_PREC(x) = p; /* Set prec */
MPFR_EXP (x) = MPFR_EXP_INVALID; /* make sure that the exp field has a