]> gcc.gnu.org Git - gcc.git/commitdiff
(_IO_str_underflow): Read newly available character from buffer as unsigned.
authorUlrich Drepper <drepper@gcc.gnu.org>
Fri, 22 May 1998 20:40:02 +0000 (20:40 +0000)
committerUlrich Drepper <drepper@gcc.gnu.org>
Fri, 22 May 1998 20:40:02 +0000 (20:40 +0000)
From-SVN: r19961

libio/strops.c

index a9f812e04511cf9d23962cea0b6b9c292afb57da..193e39d55cb87311275198c0a14f17a194b37ad7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 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
@@ -189,7 +189,7 @@ _IO_str_underflow (fp)
       fp->_IO_write_ptr = fp->_IO_write_end;
     }
   if (fp->_IO_read_ptr < fp->_IO_read_end)
-    return *fp->_IO_read_ptr;
+    return *((unsigned char *) fp->_IO_read_ptr);
   else
     return EOF;
 }
This page took 0.066967 seconds and 5 git commands to generate.