summaryrefslogtreecommitdiff
path: root/tests/tget_str.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-10-30 14:28:43 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-10-30 14:28:43 +0000
commit51f7d8b678ee40521a9b46224533c0169ea8a72a (patch)
tree279cf9e661e852e203ac0f20a22e16db197271c9 /tests/tget_str.c
parent0c98c821608efdd9a9014e0e9de744e215fdce31 (diff)
downloadmpfr-51f7d8b678ee40521a9b46224533c0169ea8a72a.tar.gz
[tests/tget_str.c] Code formatting.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9225 280ebfd0-de03-0410-8827-d642c229c3f4
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 */