summaryrefslogtreecommitdiffstats
path: root/libio/strops.c
diff options
context:
space:
mode:
authordrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-22 20:40:02 +0000
committerdrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-22 20:40:02 +0000
commit64e3230ff900cbc4fa50fae2c44a37a0229aff4f (patch)
treea701dbe8a44f93442de7768a222dccb590546564 /libio/strops.c
parentc5c6781c7df42740291258ab74eeeaa91be683e6 (diff)
downloadppe42-gcc-64e3230ff900cbc4fa50fae2c44a37a0229aff4f.tar.gz
ppe42-gcc-64e3230ff900cbc4fa50fae2c44a37a0229aff4f.zip
(_IO_str_underflow): Read newly available character from buffer as unsigned.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19961 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio/strops.c')
-rw-r--r--libio/strops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libio/strops.c b/libio/strops.c
index a9f812e0451..193e39d55cb 100644
--- a/libio/strops.c
+++ b/libio/strops.c
@@ -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;
}
OpenPOWER on IntegriCloud