From 6048e20ca26022509ea4ae5a5e27b04818705667 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Thu, 17 Dec 2020 07:59:09 +0000 Subject: [tests/ttanu.c] C89 compatibility. git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14218 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/ttanu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/ttanu.c') 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); -- cgit v1.2.1