summaryrefslogtreecommitdiff
path: root/tests/tfmod.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2009-05-20 10:34:33 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2009-05-20 10:34:33 +0000
commit79eb6085a7777e99f5b063f1e1bc34338de64ac3 (patch)
treec8ac846cc388606a963d5da3b5b3da9a5aca2a6f /tests/tfmod.c
parent3546f2f6bd6e3073e223008a63d96d6994b2e8e4 (diff)
downloadmpfr-79eb6085a7777e99f5b063f1e1bc34338de64ac3.tar.gz
tests/tfmod.c: replaced NULL by (mpfr_ptr) 0 in mpfr_inits2/mpfr_clears.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6232 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tfmod.c')
-rw-r--r--tests/tfmod.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/tfmod.c b/tests/tfmod.c
index 93359462e..e4aa62d71 100644
--- a/tests/tfmod.c
+++ b/tests/tfmod.c
@@ -165,36 +165,36 @@ bug20090519 (void)
{
mpfr_t x, y, r;
- mpfr_inits2 (3, x, y, r, NULL);
+ mpfr_inits2 (3, x, y, r, (mpfr_ptr) 0);
mpfr_set_si (x, 8, MPFR_RNDN);
mpfr_set_si (y, 7, MPFR_RNDN);
mpfr_fmod (r, x, y, MPFR_RNDN);
MPFR_ASSERTN(mpfr_cmp_ui0 (r, 1) == 0);
- mpfr_clears (r, x, y, NULL);
+ mpfr_clears (r, x, y, (mpfr_ptr) 0);
- mpfr_inits2 (10, x, y, r, NULL);
+ mpfr_inits2 (10, x, y, r, (mpfr_ptr) 0);
mpfr_set_si (x, 3 << 26, MPFR_RNDN);
mpfr_set_si (y, (1 << 9) - 1, MPFR_RNDN);
mpfr_fmod (r, x, y, MPFR_RNDN);
MPFR_ASSERTN(mpfr_cmp_ui0 (r, 257) == 0);
- mpfr_clears (r, x, y, NULL);
+ mpfr_clears (r, x, y, (mpfr_ptr) 0);
- mpfr_inits2 (100, x, y, r, NULL);
+ mpfr_inits2 (100, x, y, r, (mpfr_ptr) 0);
mpfr_set_d (x, 3.5, MPFR_RNDN);
mpfr_set_str (y, "1.1", 10, MPFR_RNDN);
mpfr_fmod (r, x, y, MPFR_RNDN);
mpfr_set_str_binary (x, "1100110011001100110011001100110011001100110011001100110011001100110011001100110011001100110011001E-99");
MPFR_ASSERTN(mpfr_equal_p (r, x));
- mpfr_clears (r, x, y, NULL);
+ mpfr_clears (r, x, y, (mpfr_ptr) 0);
- mpfr_inits2 (100, x, y, r, NULL);
+ mpfr_inits2 (100, x, y, r, (mpfr_ptr) 0);
mpfr_set_si (x, 20, MPFR_RNDN);
mpfr_set_d (y, 0.5, MPFR_RNDN); /* exact */
mpfr_sin (y, y, MPFR_RNDN);
mpfr_fmod(r, x, y, MPFR_RNDN);
mpfr_set_str_binary (x, "1010111111100110001010101111111111100000011001001001111000101000011011101110110110100110100110101001E-101");
MPFR_ASSERTN(mpfr_equal_p (r, x));
- mpfr_clears(r, x, y, NULL);
+ mpfr_clears(r, x, y, (mpfr_ptr) 0);
}
int