summaryrefslogtreecommitdiff
path: root/tests/tmul_ui.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/tmul_ui.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/tmul_ui.c')
-rw-r--r--tests/tmul_ui.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/tmul_ui.c b/tests/tmul_ui.c
index aaeaf952a..fd6e08e19 100644
--- a/tests/tmul_ui.c
+++ b/tests/tmul_ui.c
@@ -103,8 +103,8 @@ main (int argc, char *argv[])
if (mpfr_cmp (x, y))
{
fprintf (stderr, "Error in mpfr_mul_ui: 1*y != y\n");
- printf ("y= "); mpfr_print_binary (y); putchar ('\n');
- printf ("1*y="); mpfr_print_binary (x); putchar ('\n');
+ printf ("y= "); mpfr_print_binary (y); puts ("");
+ printf ("1*y="); mpfr_print_binary (x); puts ("");
exit (1);
}
@@ -147,7 +147,7 @@ main (int argc, char *argv[])
if (mpfr_cmp_ui(x, 0) <= 0)
{
fprintf(stderr, "Error in mpfr_mul_ui: 4*3.0 does not give a positive result:\n");
- mpfr_print_binary(x); putchar('\n');
+ mpfr_print_binary(x); puts ("");
printf("mpfr_cmp_ui(x, 0) = %d\n", mpfr_cmp_ui(x, 0));
exit(1);
}
@@ -160,7 +160,7 @@ main (int argc, char *argv[])
if (mpfr_cmp (x, y))
{
fprintf (stderr, "Error in mul_ui for 1335*(0.100001111E9)\n");
- printf ("got "); mpfr_print_binary (x); putchar ('\n');
+ printf ("got "); mpfr_print_binary (x); puts ("");
exit(1);
}
@@ -174,7 +174,7 @@ main (int argc, char *argv[])
if (mpfr_cmp(x, y))
{
printf("Error for 121*y: expected result is:\n");
- mpfr_print_binary(y); putchar('\n');
+ mpfr_print_binary(y); puts ("");
}
mpfr_set_prec (x, 32);
@@ -201,8 +201,8 @@ main (int argc, char *argv[])
if (mpfr_cmp (x, y))
{
printf ("Error for 23 * 2143861251406875.0\n");
- printf ("expected "); mpfr_print_binary (x); putchar ('\n');
- printf ("got "); mpfr_print_binary (y); putchar ('\n');
+ printf ("expected "); mpfr_print_binary (x); puts ("");
+ printf ("got "); mpfr_print_binary (y); puts ("");
exit (1);
}
@@ -218,8 +218,8 @@ main (int argc, char *argv[])
if (mpfr_get_d1 (x) != mpfr_get_d1 (y))
{
fprintf (stderr, "multiplication by 1.0 fails for xprec=%u, yprec=%u\n", xprec, yprec);
- printf ("expected "); mpfr_print_binary (x); putchar ('\n');
- printf ("got "); mpfr_print_binary (y); putchar ('\n');
+ printf ("expected "); mpfr_print_binary (x); puts ("");
+ printf ("got "); mpfr_print_binary (y); puts ("");
exit (1);
}
}