OSDN Git Service

* stdiostream.cc (sys_read): Declare ch with int type, rather than
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Dec 1997 18:31:56 +0000 (18:31 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Dec 1997 18:31:56 +0000 (18:31 +0000)
        without a type.

Bring over from devo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17042 138bc75d-0d04-0410-961f-82ee72b054a4

libio/ChangeLog
libio/stdiostream.cc

index 3973153..f1a0603 100644 (file)
@@ -33,6 +33,11 @@ Wed Nov 26 16:08:50 1997  Richard Henderson  (rth@cygnus.com)
        * gen-params (va_list): Check for and use __gnuc_va_list.
        (NULL): Work around some linux kernel headers and redefine NULL.
 
+Mon Nov 24 17:04:18 1997  Michael Meissner  <meissner@cygnus.com>
+
+       * stdiostream.cc (sys_read): Declare ch with int type, rather than
+       without a type.
+
 Tue Nov 18 09:53:58 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
 
        * stdstrbufs.cc (DEF_STDFILE): Use STD_VTABLE.
index 80db5e5..bc9bef0 100644 (file)
@@ -74,7 +74,7 @@ streamsize stdiobuf::sys_read(char* buf, streamsize size)
   // after we have gotten rid of the double indirection.  FIXME
   if (size == 1)
     {
-      register ch = getc(_file);
+      register int ch = getc(_file);
       if (ch == EOF)
        return 0;
       *buf = (char)ch;