diff options
author | Paolo Carlini <pcarlini@unitus.it> | 2003-04-14 19:57:48 +0200 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2003-04-14 17:57:48 +0000 |
commit | 22fc0e9ffec42f27aff7062dad4a9759c5edb23c (patch) | |
tree | 72cef8353a4d886894e1d6929222ed69ef6c8928 | |
parent | 2fcb395cd4414d84799988a6f00122b6e63c4bb3 (diff) | |
download | gcc-22fc0e9ffec42f27aff7062dad4a9759c5edb23c.zip gcc-22fc0e9ffec42f27aff7062dad4a9759c5edb23c.tar.gz gcc-22fc0e9ffec42f27aff7062dad4a9759c5edb23c.tar.bz2 |
fstream.tcc (basic_filebuf::setbuf): Don't set _M_out_end, _M_set_indeterminate() does it.
2003-04-14 Paolo Carlini <pcarlini@unitus.it>
* include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
_M_out_end, _M_set_indeterminate() does it.
From-SVN: r65582
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/fstream.tcc | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index afe8a1c..26d0095 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-04-14 Paolo Carlini <pcarlini@unitus.it> + + * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set + _M_out_end, _M_set_indeterminate() does it. + 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> * os/hpux/ctype_inline.h: Replace with gnu-linux version. diff --git a/libstdc++-v3/include/bits/fstream.tcc b/libstdc++-v3/include/bits/fstream.tcc index 360b907..de74de6 100644 --- a/libstdc++-v3/include/bits/fstream.tcc +++ b/libstdc++-v3/include/bits/fstream.tcc @@ -428,8 +428,6 @@ namespace std // Step 2: Use the external array. this->_M_buf = __s; this->_M_buf_size = __n; - // Consistently set the end of buffer pointer. - this->_M_out_end = this->_M_buf + this->_M_buf_size; _M_set_indeterminate(); } _M_last_overflowed = false; |