]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fstream.tcc (basic_filebuf::setbuf): Don't set _M_out_end, _M_set_indeterminate(...
authorPaolo Carlini <pcarlini@unitus.it>
Mon, 14 Apr 2003 17:57:48 +0000 (19:57 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 14 Apr 2003 17:57:48 +0000 (17:57 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc

index afe8a1ca81fe852214f11940da49dcdaad47bb92..26d0095346dc50af073e233ef2b02c79083e0fe5 100644 (file)
@@ -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.
index 360b907336bfeb2da3803462fbe440591f9d7c13..de74de6e720481d4b747fa68e3e97476726a310b 100644 (file)
@@ -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;