diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-01-18 14:30:15 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-01-18 14:30:15 +0000 |
commit | d77839699d5794c9c33d8954aebbcfaa9bcde0e3 (patch) | |
tree | ba8ed81b89cf110386bb7d27bb8741408f0011ad /tests/tprintf.c | |
parent | ca172c1d3c4c4e79be2ec82f9636639ccb431ed9 (diff) | |
download | mpfr-d77839699d5794c9c33d8954aebbcfaa9bcde0e3.tar.gz |
[tprintf.c, tfprintf.c] cleaned up previous commit
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6678 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tprintf.c')
-rw-r--r-- | tests/tprintf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tprintf.c b/tests/tprintf.c index 3140f0b3e..53e423220 100644 --- a/tests/tprintf.c +++ b/tests/tprintf.c @@ -241,7 +241,7 @@ check_mixed (void) double d = -1.25; long double ld = -1.25; - ptrdiff_t p = 1; + ptrdiff_t p = 1, saved_p; size_t sz = 1; mpz_t mpz; @@ -279,9 +279,10 @@ check_mixed (void) check_length_with_cmp (7, mpfr, 15, mpfr_cmp_ui (mpfr, 15), Rg); #ifndef NPRINTF_T + saved_p = p; check_vprintf ("%% a. %RNg, b. %Qx, c. %td%tn", mpfr, mpq, p, &p); if (p != 20) - mpfr_fprintf (stderr, "Error in test 8, got '%% a. %RNg, b. %Qx, c. %td'\n", mpfr, mpq, 1); + mpfr_fprintf (stderr, "Error in test 8, got '%% a. %RNg, b. %Qx, c. %td'\n", mpfr, mpq, saved_p); check_length (8, (long) p, 20, ld); /* no format specifier '%td' in C89 */ #endif |