(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

View File

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