summaryrefslogtreecommitdiff
path: root/tests/tset_sj.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-05-12 12:36:13 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-05-12 12:36:13 +0000
commit96e7f3fffaee46d9ce896161b7a54402d47afc4d (patch)
treebbff542658098085e2e7c803c091ab886781a325 /tests/tset_sj.c
parenta76828f172de1b273e921937941a0cc7b2ccf201 (diff)
downloadmpfr-96e7f3fffaee46d9ce896161b7a54402d47afc4d.tar.gz
Fixed printf's calls: support the case where mpfr_prec_t is not a long
(or unsigned long). [merged changeset r7643 from the exp-int branch] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7686 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tset_sj.c')
-rw-r--r--tests/tset_sj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tset_sj.c b/tests/tset_sj.c
index a7ba200c7..0068d9388 100644
--- a/tests/tset_sj.c
+++ b/tests/tset_sj.c
@@ -86,7 +86,7 @@ check_set_uj (mpfr_prec_t pmin, mpfr_prec_t pmax, int N)
if (mpfr_cmp (x, y))
{
printf ("ERROR for mpfr_set_uj and j=%lu and p=%lu\n",
- (unsigned long) limb, p);
+ (unsigned long) limb, (unsigned long) p);
printf ("X="); mpfr_dump (x);
printf ("Y="); mpfr_dump (y);
exit (1);
@@ -95,7 +95,7 @@ check_set_uj (mpfr_prec_t pmin, mpfr_prec_t pmax, int N)
{
printf ("ERROR for inexact(set_uj): j=%lu p=%lu\n"
"Inexact1= %d Inexact2= %d\n",
- (unsigned long) limb, p, inex1, inex2);
+ (unsigned long) limb, (unsigned long) p, inex1, inex2);
exit (1);
}
}