diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-11-25 06:20:35 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-11-25 06:20:35 +0000 |
commit | 440570287b1a0a892422c53f6c617221d988066b (patch) | |
tree | 7cfcb4771aeae86bbb9f1fb1b5577b180b0d5a5f /init2.c | |
parent | 6a73cc6a28ad47e4188cd5dfdfea9bb88a7b915c (diff) | |
download | mpfr-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |