diff options
author | ryde <ryde@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-06-09 22:48:18 +0000 |
---|---|---|
committer | ryde <ryde@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-06-09 22:48:18 +0000 |
commit | 674e99596457dcafd4ddd10a7660ad893cb18772 (patch) | |
tree | abc668ca7c2cb8eb031995f4fd6b88d026cdc12c /tests/tsqrt.c | |
parent | 8a6c5d3a53a2ea00254a54d7723667bcdd124727 (diff) | |
download | mpfr-674e99596457dcafd4ddd10a7660ad893cb18772.tar.gz |
Patch by Torbjorn: use puts not putchar, to avoid GNUPro compiler bug.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2317 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsqrt.c')
-rw-r--r-- | tests/tsqrt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tsqrt.c b/tests/tsqrt.c index 5ae89e7ab..bd161faa3 100644 --- a/tests/tsqrt.c +++ b/tests/tsqrt.c @@ -68,8 +68,8 @@ check4 (double a, mp_rnd_t rnd_mode, char *Q) { printf("mpfr_sqrt failed for a=%1.20e, rnd_mode=%s\n", a, mpfr_print_rnd_mode(rnd_mode)); - printf("expected "); mpfr_print_binary(res); putchar('\n'); - printf("got "); mpfr_print_binary(q); putchar('\n'); + printf("expected "); mpfr_print_binary(res); puts (""); + printf("got "); mpfr_print_binary(q); puts (""); mpfr_clear(q); mpfr_clear(res); exit(1); } @@ -175,7 +175,7 @@ special (void) if (mpfr_get_d1 (x) != 1.5) { fprintf (stderr, "Error: sqrt(1+ulp(1), up) should give 1.5 (prec=%u)\n", (unsigned) p); - printf ("got "); mpfr_print_binary (x); putchar ('\n'); + printf ("got "); mpfr_print_binary (x); puts (""); exit (1); } } @@ -243,7 +243,7 @@ check_inexact (mp_prec_t p) printf ("x="); mpfr_print_binary (x); printf (" rnd=%s\n", mpfr_print_rnd_mode (rnd)); - printf ("y="); mpfr_print_binary (y); putchar ('\n'); + printf ("y="); mpfr_print_binary (y); puts (""); exit (1); } mpfr_clear (x); |