summary refs log tree commit diff
path: root/libio/fileops.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/fileops.c')
-rw-r--r--libio/fileops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/fileops.c b/libio/fileops.c
index 60481b1af4..37c47eef89 100644
--- a/libio/fileops.c
+++ b/libio/fileops.c
@@ -579,7 +579,7 @@ _IO_file_underflow_mmap (_IO_FILE *fp)
 
       fp->_offset = fp->_IO_buf_end - fp->_IO_buf_base;
       fp->_IO_read_end = fp->_IO_buf_end;
-      return *fp->_IO_read_ptr;
+      return *(unsigned char *) fp->_IO_read_ptr;
     }
 
   fp->_flags |= _IO_EOF_SEEN;