summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-08 09:50:20 +0000
committerdrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-08 09:50:20 +0000
commita88e720a060534f445499c3e3130cfb8ad85d125 (patch)
tree490e3f723a5f303a3323dc2b3afc95267219938b
parent27cffc8973f0ab3f10e10b87178e97faa8ea311c (diff)
downloadgcc-a88e720a060534f445499c3e3130cfb8ad85d125.tar.gz
(__underflow): Read character from read pointer as unsigned.
(__uflow): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20329 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libio/genops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libio/genops.c b/libio/genops.c
index de9c826b9fe..cbd8f0f1ea2 100644
--- a/libio/genops.c
+++ b/libio/genops.c
@@ -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))
{