summaryrefslogtreecommitdiff
path: root/tests/tsub_ui.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-06-21 11:53:16 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2007-06-21 11:53:16 +0000
commitb6cf60ef092b5bb353cf364a517ce2d0005cfcdd (patch)
treef30f993c052459e25a34b39200a9b1a74475072e /tests/tsub_ui.c
parentc599cd48f2238d6198a580c279011d34b64148c6 (diff)
downloadmpfr-b6cf60ef092b5bb353cf364a517ce2d0005cfcdd.tar.gz
Corrected mpfr_inits, mpfr_inits2 and mpfr_clears calls with NULL
argument (-> (void *) 0). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4557 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsub_ui.c')
-rw-r--r--tests/tsub_ui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tsub_ui.c b/tests/tsub_ui.c
index 38294d693..14cba1eb3 100644
--- a/tests/tsub_ui.c
+++ b/tests/tsub_ui.c
@@ -32,7 +32,7 @@ check3 (const char *xs, unsigned long y, mp_rnd_t rnd_mode, const char *zs)
{
mpfr_t xx,zz;
- mpfr_inits2 (53, xx, zz, NULL);
+ mpfr_inits2 (53, xx, zz, (void *) 0);
mpfr_set_str1 (xx, xs);
mpfr_sub_ui (zz, xx, y, rnd_mode);
if (mpfr_cmp_str1(zz, zs))
@@ -43,7 +43,7 @@ check3 (const char *xs, unsigned long y, mp_rnd_t rnd_mode, const char *zs)
xs, y, mpfr_print_rnd_mode (rnd_mode));
exit (1);
}
- mpfr_clears (xx, zz, NULL);
+ mpfr_clears (xx, zz, (void *) 0);
}
/* FastTwoSum: if EXP(x) >= EXP(y), u = o(x+y), v = o(u-x), w = o(y-v),
@@ -57,7 +57,7 @@ check_two_sum (mp_prec_t p)
mp_rnd_t rnd;
int inexact;
- mpfr_inits2 (p, y, u, v, w, NULL);
+ mpfr_inits2 (p, y, u, v, w, (void *) 0);
do
{
x = randlimb ();
@@ -83,7 +83,7 @@ check_two_sum (mp_prec_t p)
printf ("inexact = %d\n", inexact);
exit (1);
}
- mpfr_clears (y, u, v, w, NULL);
+ mpfr_clears (y, u, v, w, (void *) 0);
}
static void