summaryrefslogtreecommitdiff
path: root/init2.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-25 06:20:35 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-25 06:20:35 +0000
commit440570287b1a0a892422c53f6c617221d988066b (patch)
tree7cfcb4771aeae86bbb9f1fb1b5577b180b0d5a5f /init2.c
parent6a73cc6a28ad47e4188cd5dfdfea9bb88a7b915c (diff)
downloadmpfr-440570287b1a0a892422c53f6c617221d988066b.tar.gz
Casts to size_t added (safer and could be required in the future).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1577 280ebfd0-de03-0410-8827-d642c229c3f4
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 */