diff options
author | Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> | 1998-06-08 09:50:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@gcc.gnu.org> | 1998-06-08 09:50:20 +0000 |
commit | 35038063e9e3d8432535c193c654e9f981a58f9f (patch) | |
tree | 490e3f723a5f303a3323dc2b3afc95267219938b /libio/genops.c | |
parent | 9a14a3ab787aacbda4a64207a82080e8fea41c77 (diff) | |
download | gcc-35038063e9e3d8432535c193c654e9f981a58f9f.zip gcc-35038063e9e3d8432535c193c654e9f981a58f9f.tar.gz gcc-35038063e9e3d8432535c193c654e9f981a58f9f.tar.bz2 |
(__underflow): Read character from read pointer as unsigned.
(__uflow): Likewise.
From-SVN: r20329
Diffstat (limited to 'libio/genops.c')
-rw-r--r-- | libio/genops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libio/genops.c b/libio/genops.c index de9c826..cbd8f0f 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)) { |