about summary refs log tree commit diff
path: root/libio/genops.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/genops.c')
-rw-r--r--libio/genops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/genops.c b/libio/genops.c
index 2dce95f842..c75be6234b 100644
--- a/libio/genops.c
+++ b/libio/genops.c
@@ -872,7 +872,7 @@ _IO_default_pbackfail (fp, c)
      int c;
 {
   if (fp->_IO_read_ptr > fp->_IO_read_base && !_IO_in_backup (fp)
-      && fp->_IO_read_ptr[-1] == c)
+      && (unsigned char) fp->_IO_read_ptr[-1] == c)
     --fp->_IO_read_ptr;
   else
     {