]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(__underflow): Read character from read pointer as unsigned.
authorAndreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Mon, 8 Jun 1998 09:50:20 +0000 (09:50 +0000)
committerUlrich Drepper <drepper@gcc.gnu.org>
Mon, 8 Jun 1998 09:50:20 +0000 (09:50 +0000)
(__uflow): Likewise.

From-SVN: r20329

libio/genops.c

index de9c826b9fed66822a835556f261bc4378879066..cbd8f0f1ea22a55b00767d1252164b5a7e888caf 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
 
    This library is free software; you can redistribute it and/or
@@ -258,7 +258,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))
     {
@@ -283,7 +283,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))
     {