summaryrefslogtreecommitdiff
path: root/tests/tadd1sp.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/tadd1sp.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/tadd1sp.c')
-rw-r--r--tests/tadd1sp.c12
1 files changed, 6 insertions, 6 deletions
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);
}