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/thypot.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/thypot.c')
-rw-r--r-- | tests/thypot.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/thypot.c b/tests/thypot.c index 55b0146ed..5caadd6ff 100644 --- a/tests/thypot.c +++ b/tests/thypot.c @@ -131,13 +131,13 @@ main (int argc, char *argv[]) mpfr_print_rnd_mode (rnd)); printf (" got "); mpfr_out_str (stdout, 2, prec, z, GMP_RNDN); - putchar ('\n'); + puts (""); printf (" expected "); mpfr_out_str (stdout, 2, prec, t, GMP_RNDN); - putchar ('\n'); + puts (""); printf (" approximation was "); mpfr_print_binary (y); - putchar ('\n'); + puts (""); exit (1); } compare2 = mpfr_cmp (t, y); @@ -153,9 +153,9 @@ main (int argc, char *argv[]) { fprintf (stderr, "Wrong inexact flag for rnd=%s: expected %d, got %d\n", mpfr_print_rnd_mode (rnd), compare, inexact); - printf ("x1="); mpfr_print_binary (x1); putchar ('\n'); - printf ("x2="); mpfr_print_binary (x2); putchar ('\n'); - printf ("t="); mpfr_print_binary (t); putchar ('\n'); + printf ("x1="); mpfr_print_binary (x1); puts (""); + printf ("x2="); mpfr_print_binary (x2); puts (""); + printf ("t="); mpfr_print_binary (t); puts (""); exit (1); } } |