summaryrefslogtreecommitdiff
path: root/sub1.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-12-26 13:50:14 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2008-12-26 13:50:14 +0000
commite6126cce973ed5dc8b67354cc6946dc7e93b6d3f (patch)
tree6eacb8a2ab156af7ce9b88d64e262bf51f91a2fe /sub1.c
parent591fd4c4b6324f85c82499ddb3de5eb0a65931b2 (diff)
downloadmpfr-e6126cce973ed5dc8b67354cc6946dc7e93b6d3f.tar.gz
sub1.c: fixed types for printf when DEBUG is defined.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5782 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sub1.c')
-rw-r--r--sub1.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sub1.c b/sub1.c
index 1cd212fa9..5d77317b0 100644
--- a/sub1.c
+++ b/sub1.c
@@ -196,7 +196,8 @@ mpfr_sub1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode)
}
#ifdef DEBUG
- printf("shift_b=%u shift_c=%u diffexp=%lu\n", shift_b, shift_c, diff_exp);
+ printf ("shift_b=%d shift_c=%d diffexp=%lu\n", shift_b, shift_c,
+ (unsigned long) diff_exp);
#endif
MPFR_ASSERTD (ap != cp);
@@ -209,7 +210,8 @@ mpfr_sub1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode)
cancel2 = (long int) (cancel - (diff_exp - shift_c)) / BITS_PER_MP_LIMB;
/* the high cancel2 limbs from b should not be taken into account */
#ifdef DEBUG
- printf("cancel=%lu cancel1=%lu cancel2=%ld\n", cancel, cancel1, cancel2);
+ printf ("cancel=%lu cancel1=%lu cancel2=%ld\n",
+ (unsigned long) cancel, (unsigned long) cancel1, (long) cancel2);
#endif
/* ap[an-1] ap[0]
@@ -342,7 +344,8 @@ mpfr_sub1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode)
cn -= (long int) an + cancel2;
#ifdef DEBUG
- printf("last %d bits from a are %lu, bn=%ld, cn=%ld\n", sh, carry, bn, cn);
+ printf ("last %d bits from a are %lu, bn=%ld, cn=%ld\n",
+ sh, (unsigned long) carry, (long) bn, (long) cn);
#endif
for (k = 0; (bn > 0) || (cn > 0); k = 1)
@@ -388,8 +391,8 @@ mpfr_sub1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode)
}
#ifdef DEBUG
- printf(" bb=%lu cc=%lu down=%d is_exact=%d\n",
- bb, cc, down, is_exact);
+ printf (" bb=%lu cc=%lu down=%d is_exact=%d\n",
+ (unsigned long) bb, (unsigned long) cc, down, is_exact);
#endif
if (bb < cc)
{