summaryrefslogtreecommitdiff
path: root/tests/tprintf.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-06-30 22:34:48 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-06-30 22:34:48 +0000
commit05e6bc49194a87f20a357b7581b167169f856dbe (patch)
treee17bc1e76385bcf3b23dd5a4bd82f11b97505fc1 /tests/tprintf.c
parent2109354342cad809efd89e34025f298c311f67be (diff)
downloadmpfr-05e6bc49194a87f20a357b7581b167169f856dbe.tar.gz
[tests/tprintf.c] Portability correction (EOF is not necessarily -1).
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14544 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tprintf.c')
-rw-r--r--tests/tprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tprintf.c b/tests/tprintf.c
index 292178aee..81f56cdb0 100644
--- a/tests/tprintf.c
+++ b/tests/tprintf.c
@@ -468,7 +468,7 @@ check_random (int nb_tests)
if (stdout_redirect)
{
- if ((fflush (stdout) == EOF) || (fclose (stdout) == -1))
+ if ((fflush (stdout) == EOF) || (fclose (stdout) == EOF))
{
perror ("check_random");
exit (1);
@@ -636,7 +636,7 @@ main (int argc, char *argv[])
if (stdout_redirect)
{
- if ((fflush (stdout) == EOF) || (fclose (stdout) == -1))
+ if ((fflush (stdout) == EOF) || (fclose (stdout) == EOF))
perror ("main");
}
tests_end_mpfr ();