summaryrefslogtreecommitdiff
path: root/round_prec.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-24 13:23:35 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-24 13:23:35 +0000
commit98127874b53bdb6ff58610957055bef91fbd7087 (patch)
tree7ae98077352d0cdab1f3300fd1cf2c4e0bfa0cd9 /round_prec.c
parent53062736c152be21b77b11fec1a29699e6c7a30c (diff)
downloadmpfr-98127874b53bdb6ff58610957055bef91fbd7087.tar.gz
Remove some warnings.
MPFR can be compiled (but not checked!) with a C++ compiler. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2802 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'round_prec.c')
-rw-r--r--round_prec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/round_prec.c b/round_prec.c
index 1d92b62f7..bb1f595a3 100644
--- a/round_prec.c
+++ b/round_prec.c
@@ -76,7 +76,7 @@ mpfr_prec_round (mpfr_ptr x, mp_prec_t prec, mp_rnd_t rnd_mode)
/* x is a non-zero real number */
TMP_MARK(marker);
- tmp = TMP_ALLOC (nw * BYTES_PER_MP_LIMB);
+ tmp = (mp_limb_t*) TMP_ALLOC (nw * BYTES_PER_MP_LIMB);
xp = MPFR_MANT(x);
carry = mpfr_round_raw (tmp, xp, MPFR_PREC(x), MPFR_IS_NEG(x),
prec, rnd_mode, &inexact);
@@ -174,7 +174,7 @@ mpfr_can_round_raw (mp_limb_t *bp, mp_size_t bn, int neg, mp_exp_t err0,
TMP_MARK(marker);
tn = bn;
k++; /* since we work with k+1 everywhere */
- tmp = TMP_ALLOC(tn * BYTES_PER_MP_LIMB);
+ tmp = (mp_limb_t*) TMP_ALLOC(tn * BYTES_PER_MP_LIMB);
if (bn > k)
MPN_COPY (tmp, bp, bn - k);