summaryrefslogtreecommitdiff
path: root/tests/ttanu.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-12-17 07:59:09 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-12-17 07:59:09 +0000
commit6048e20ca26022509ea4ae5a5e27b04818705667 (patch)
treef4f1c27bf6ee970bfea8096af6a3f0c85c991bce /tests/ttanu.c
parentef83e83c2738ef6a44140bf659a4035793ae3599 (diff)
downloadmpfr-6048e20ca26022509ea4ae5a5e27b04818705667.tar.gz
[tests/ttanu.c] C89 compatibility.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14218 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/ttanu.c')
-rw-r--r--tests/ttanu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ttanu.c b/tests/ttanu.c
index 9933a0a26..e79cedd7c 100644
--- a/tests/ttanu.c
+++ b/tests/ttanu.c
@@ -71,13 +71,13 @@ static void
test_exact (void)
{
mpfr_t x, y;
- int inexact;
+ int inexact, n;
mpfr_init2 (x, 6);
mpfr_init2 (y, 6);
/* check n + 0.5 for n integer */
- for (int n = 0; n < 10; n++)
+ for (n = 0; n < 10; n++)
{
/* check 2n+0.5 for n>=0: +Inf and divide by 0 exception */
mpfr_set_ui (x, 4 * n + 1, MPFR_RNDN);