]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(ungetc): Cast c to signed char first to really match EOF.
authorUlrich Drepper <drepper@redhat.com>
Mon, 28 Aug 2000 22:29:36 +0000 (22:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 28 Aug 2000 22:29:36 +0000 (22:29 +0000)
stdio-common/vfscanf.c

index 1d9fd3e17423347f0f5e0e515c60ce0c2f78c3c0..93e015f3dfa329fc4bb2e7b5d4361fa2b401091a 100644 (file)
 #  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                                       \