summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/bits/streambuf.tcc
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-10 22:00:43 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-10 22:00:43 +0000
commitab7d8187c77be1284ae30d7f2b7d1c75f4a7e3b4 (patch)
tree5b58dfe6d9667340a91ac1704b87da6a4ba7cb96 /libstdc++-v3/include/bits/streambuf.tcc
parenteba9ef4c75152b71fada3544550f85ee864053d2 (diff)
downloadgcc-ab7d8187c77be1284ae30d7f2b7d1c75f4a7e3b4.tar.gz
2003-06-10 Paolo Carlini <pcarlini@unitus.it>
* include/bits/fstream.tcc (close): Clean up a bit. * include/bits/streambuf.tcc (sbumpc): Clean up a bit. * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save - the saved _M_in_cur, that is - cannot be null. (sync): Constify a variable. * include/std/std_streambuf.h: Tweak a comment. (in_avail): Constify a variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67738 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/streambuf.tcc')
-rw-r--r--libstdc++-v3/include/bits/streambuf.tcc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/streambuf.tcc b/libstdc++-v3/include/bits/streambuf.tcc
index 5b76c40f928..f6a96e85581 100644
--- a/libstdc++-v3/include/bits/streambuf.tcc
+++ b/libstdc++-v3/include/bits/streambuf.tcc
@@ -47,9 +47,8 @@ namespace std
int_type __ret;
if (_M_in_cur < _M_in_end)
{
- char_type __c = *this->_M_in_cur;
+ __ret = traits_type::to_int_type(*this->_M_in_cur);
_M_move_in_cur(1);
- __ret = traits_type::to_int_type(__c);
}
else
__ret = this->uflow();