From b6cf60ef092b5bb353cf364a517ce2d0005cfcdd Mon Sep 17 00:00:00 2001 From: vlefevre Date: Thu, 21 Jun 2007 11:53:16 +0000 Subject: 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 --- tests/tadd1sp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/tadd1sp.c') diff --git a/tests/tadd1sp.c b/tests/tadd1sp.c index d7ff9d45a..cf3beb8d5 100644 --- a/tests/tadd1sp.c +++ b/tests/tadd1sp.c @@ -36,7 +36,7 @@ check_overflow (void) set_emin (-1021); set_emax (1024); - mpfr_inits (x, y, z1, z2, NULL); + mpfr_inits (x, y, z1, z2, (void *) 0); mpfr_set_str1 (x, "8.00468257869324898448e+307"); mpfr_set_str1 (y, "7.44784712422708645156e+307"); @@ -47,7 +47,7 @@ check_overflow (void) printf ("Overflow bug in add1sp.\n"); exit (1); } - mpfr_clears (x, y, z1, z2, NULL); + mpfr_clears (x, y, z1, z2, (void *) 0); } int main(void) @@ -103,7 +103,7 @@ void check_random(mp_prec_t p) int r; int i, inexact1, inexact2; - mpfr_inits2(p, a1,b,c,a2, NULL); + mpfr_inits2 (p, a1, b, c, a2, (void *) 0); for (i = 0 ; i < 500 ; i++) { @@ -126,7 +126,7 @@ void check_random(mp_prec_t p) } } - mpfr_clears(a1,a2,b,c,NULL); + mpfr_clears (a1, a2, b, c, (void *) 0); } void check_special(void) @@ -136,7 +136,7 @@ void check_special(void) mpfr_prec_t p; int i = -1, inexact1, inexact2; - mpfr_inits(a1,a2,b,c,NULL); + mpfr_inits (a1, a2, b, c, (void *) 0); for (r = 0 ; r < GMP_RND_MAX ; r++) { @@ -172,5 +172,5 @@ void check_special(void) exit (1); } - mpfr_clears(a1,a2,b,c,NULL); + mpfr_clears (a1, a2, b, c, (void *) 0); } -- cgit v1.2.1