summaryrefslogtreecommitdiff
path: root/src/mpfr-mini-gmp.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-09-07 19:16:34 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2018-09-07 19:16:34 +0000
commitdfdb65d316a21de38283dba648de7e3dcba8b6b2 (patch)
treeeaf7f9c95f11bd8dcd2850844ee94438fd9e325d /src/mpfr-mini-gmp.c
parentc637546ea30822366d326e78d9a7b1fba17eeb9e (diff)
downloadmpfr-dfdb65d316a21de38283dba648de7e3dcba8b6b2.tar.gz
[src/mpfr-mini-gmp.c] fixed another compiler warning
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13159 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/mpfr-mini-gmp.c')
-rw-r--r--src/mpfr-mini-gmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mpfr-mini-gmp.c b/src/mpfr-mini-gmp.c
index 416c0fd6a..16b328422 100644
--- a/src/mpfr-mini-gmp.c
+++ b/src/mpfr-mini-gmp.c
@@ -247,19 +247,19 @@ mpz_dump (mpz_t z)
{
if (first)
{
- printf ("%lx", z->_mp_d[n-1]);
+ printf ("%lx", (unsigned long) z->_mp_d[n-1]);
first = 0;
}
else
{
char s[17];
int len;
- sprintf (s, "%lx", z->_mp_d[n-1]);
+ sprintf (s, "%lx", (unsigned long) z->_mp_d[n-1]);
len = strlen (s);
/* one character should be printed for 4 bits */
while (len++ < GMP_NUMB_BITS / 4)
printf ("0");
- printf ("%lx", z->_mp_d[n-1]);
+ printf ("%lx", (unsigned long) z->_mp_d[n-1]);
}
n--;
}