summaryrefslogtreecommitdiff
path: root/init2.c
diff options
context:
space:
mode:
Diffstat (limited to 'init2.c')
-rw-r--r--init2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/init2.c b/init2.c
index 50dd8fd9a..722b0ee6d 100644
--- a/init2.c
+++ b/init2.c
@@ -34,7 +34,8 @@ mpfr_init2 (mpfr_ptr x, mp_prec_t p)
xsize = (mp_size_t) ((p - 1) / BITS_PER_MP_LIMB) + 1;
MPFR_PREC(x) = p;
- MPFR_MANT(x) = (mp_ptr) (*__gmp_allocate_func) (xsize * BYTES_PER_MP_LIMB);
+ MPFR_MANT(x) = (mp_ptr)
+ (*__gmp_allocate_func) ((size_t) xsize * BYTES_PER_MP_LIMB);
MPFR_SIZE(x) = xsize;
MPFR_CLEAR_FLAGS(x); /* though not necessary in our current implementation */
MPFR_SET_ZERO(x); /* initializes to zero */