summaryrefslogtreecommitdiff
path: root/tests/tget_str.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tget_str.c')
-rw-r--r--tests/tget_str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tget_str.c b/tests/tget_str.c
index 10ab25796..e1d61a278 100644
--- a/tests/tget_str.c
+++ b/tests/tget_str.c
@@ -1100,15 +1100,15 @@ check_special (int b, mpfr_prec_t p)
}
s2[0] = '1';
- for (i=1; i<MAX_DIGITS+2; i++)
+ for (i = 1; i < MAX_DIGITS + 2; i++)
s2[i] = '0';
mpfr_set_ui (x, 1, MPFR_RNDN);
- for (i=1; i<MAX_DIGITS && mpfr_mul_ui (x, x, b, MPFR_RNDN) == 0; i++)
+ for (i = 1; i < MAX_DIGITS && mpfr_mul_ui (x, x, b, MPFR_RNDN) == 0; i++)
{
/* x = b^i (exact) */
for (r = 0; r < MPFR_RND_MAX; r++)
- for (m= (i<3)? 2 : i-1 ; (int) m <= i+1 ; m++)
+ for (m = i < 3 ? 2 : i-1 ; (int) m <= i+1 ; m++)
{
mpfr_get_str (s, &e, b, m, x, (mpfr_rnd_t) r);
/* s should be 1 followed by (m-1) zeros, and e should be i+1 */