diff options
author | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-11-20 13:08:47 +0000 |
---|---|---|
committer | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-11-20 13:08:47 +0000 |
commit | cf2baeaba8056e98f6242b93c02c112ae3731e94 (patch) | |
tree | 6aff0fd2e736134431b65f9ba5e5ebbc6e3daa5e /tests/read_data.c | |
parent | 904e9bbee5710dc7abf6649bc478e1d11c2b22b9 (diff) | |
download | mpc-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.c | 2 |
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); |