summaryrefslogtreecommitdiff
path: root/tests/read_data.c
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-11-20 13:08:47 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-11-20 13:08:47 +0000
commitcf2baeaba8056e98f6242b93c02c112ae3731e94 (patch)
tree6aff0fd2e736134431b65f9ba5e5ebbc6e3daa5e /tests/read_data.c
parent904e9bbee5710dc7abf6649bc478e1d11c2b22b9 (diff)
downloadmpc-cf2baeaba8056e98f6242b93c02c112ae3731e94.tar.gz
some more EOF handling
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@347 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/read_data.c')
-rw-r--r--tests/read_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/read_data.c b/tests/read_data.c
index 2e8b0d5..b9ddb80 100644
--- a/tests/read_data.c
+++ b/tests/read_data.c
@@ -123,7 +123,7 @@ read_mpfr_rounding_mode (FILE *fp, mpfr_rnd_t* rnd)
}
nextchar = getc (fp);
- if (!isspace (nextchar)) {
+ if (nextchar != EOF && !isspace (nextchar)) {
printf ("Error: Rounding mode not followed by white space in file "
"'%s' line %ld\n",
pathname, line_number);