aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stdio-common/vfscanf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c
index 1d9fd3e174..93e015f3df 100644
--- a/stdio-common/vfscanf.c
+++ b/stdio-common/vfscanf.c
@@ -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 \