summaryrefslogtreecommitdiff
path: root/tests/tpow3.c
diff options
context:
space:
mode:
authorryde <ryde@280ebfd0-de03-0410-8827-d642c229c3f4>2003-06-09 22:48:18 +0000
committerryde <ryde@280ebfd0-de03-0410-8827-d642c229c3f4>2003-06-09 22:48:18 +0000
commit674e99596457dcafd4ddd10a7660ad893cb18772 (patch)
treeabc668ca7c2cb8eb031995f4fd6b88d026cdc12c /tests/tpow3.c
parent8a6c5d3a53a2ea00254a54d7723667bcdd124727 (diff)
downloadmpfr-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/tpow3.c')
-rw-r--r--tests/tpow3.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tpow3.c b/tests/tpow3.c
index e4964753a..8cf2dffc5 100644
--- a/tests/tpow3.c
+++ b/tests/tpow3.c
@@ -89,13 +89,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 ("approx ");
mpfr_print_binary (y);
- putchar ('\n');
+ puts ("");
exit (1);
}
compare2 = mpfr_cmp (t, y);
@@ -111,9 +111,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 ("x="); mpfr_print_binary (x); putchar ('\n');
- printf ("y="); mpfr_print_binary (y); putchar ('\n');
- printf ("t="); mpfr_print_binary (t); putchar ('\n');
+ printf ("x="); mpfr_print_binary (x); puts ("");
+ printf ("y="); mpfr_print_binary (y); puts ("");
+ printf ("t="); mpfr_print_binary (t); puts ("");
exit (1);
}
}