mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
(ungetc): Cast c to signed char first to really match EOF.
This commit is contained in:
parent
1e0448d42a
commit
12e3e5cc74
@ -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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user