(ungetc): Cast c to signed char first to really match EOF.

This commit is contained in:
Ulrich Drepper 2000-08-28 22:29:36 +00:00
parent 1e0448d42a
commit 12e3e5cc74
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@
# undef EOF
# define EOF WEOF
# else
# define ungetc(c, s) ((void) ((int) c == EOF \
# define ungetc(c, s) ((void) ((int) (signed char) c == EOF \
|| (--read_in, \
_IO_sputbackc (s, (unsigned char) c))))
# define inchar() (c == EOF ? EOF \