OSDN Git Service

(struct function): Make frame_offset be HOST_WIDE_INT.
[pf3gnuchains/gcc-fork.git] / gcc / cp / input.c
index 378521e..e142bf4 100644 (file)
@@ -1,5 +1,5 @@
 /* Input handling for G++.
-   Copyright (C) 1992, 1993 Free Software Foundation, Inc.
+   Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
    Written by Ken Raeburn (raeburn@cygnus.com) while at Watchmaker Computing.
 
 This file is part of GNU CC.
@@ -16,7 +16,8 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with GNU CC; see the file COPYING.  If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.  */
 
 /* G++ needs to do enough saving and re-parsing of text that it is
    necessary to abandon the simple FILE* model and use a mechanism where
@@ -155,14 +156,14 @@ sub_getch ()
          input = inp->next;
          input_filename = inp->filename;
          lineno = inp->lineno;
-         /* Get interface/implementation back in sync. */
+         /* Get interface/implementation back in sync.  */
          extract_interface_info ();
          putback_char = inp->putback_char;
          free_input (inp);
          return getch ();
        }
       if (input)
-       return input->str[input->offset++];
+       return (unsigned char)input->str[input->offset++];
     }
   return getc (finput);
 }