summaryrefslogtreecommitdiff
path: root/div_ui.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2002-11-19 16:26:22 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2002-11-19 16:26:22 +0000
commit9e1957a69f1650509ac1d9ca85378a67d20e80f6 (patch)
treef528aeff0bf822538f5c404d028271e5d81656c9 /div_ui.c
parent5b409642c9189326907243df52580e39746ed5fc (diff)
downloadmpfr-9e1957a69f1650509ac1d9ca85378a67d20e80f6.tar.gz
added explicit cast
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2076 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'div_ui.c')
-rw-r--r--div_ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/div_ui.c b/div_ui.c
index edb54803c..f263aa9c3 100644
--- a/div_ui.c
+++ b/div_ui.c
@@ -86,7 +86,7 @@ mpfr_div_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mp_rnd_t rnd_mode)
/* we need to store yn+1 = xn + dif limbs of the quotient */
/* don't use tmp=yp since the mpn_lshift call below requires yp >= tmp+1 */
- tmp = TMP_ALLOC((yn + 1) * BYTES_PER_MP_LIMB);
+ tmp = (mp_limb_t*) TMP_ALLOC((yn + 1) * BYTES_PER_MP_LIMB);
c = (mp_limb_t) u;
MPFR_ASSERTN(u == c);