(__underflow): Read character from read pointer as unsigned.
authordrepper <drepper>
Mon, 8 Jun 1998 09:48:56 +0000 (09:48 +0000)
committerdrepper <drepper>
Mon, 8 Jun 1998 09:48:56 +0000 (09:48 +0000)
(__uflow): Likewise.

libio/genops.c

index b0334d6..4286eef 100644 (file)
@@ -273,7 +273,7 @@ __underflow (fp)
     {
       _IO_switch_to_main_get_area (fp);
       if (fp->_IO_read_ptr < fp->_IO_read_end)
-       return *fp->_IO_read_ptr;
+       return *(unsigned char *) fp->_IO_read_ptr;
     }
   if (_IO_have_markers (fp))
     {
@@ -298,7 +298,7 @@ __uflow (fp)
     {
       _IO_switch_to_main_get_area (fp);
       if (fp->_IO_read_ptr < fp->_IO_read_end)
-       return *fp->_IO_read_ptr++;
+       return *(unsigned char *) fp->_IO_read_ptr++;
     }
   if (_IO_have_markers (fp))
     {