sstream.tcc (seekpos): In case of success, just return __sp.
authorPaolo Carlini <pcarlini@suse.de>
Sun, 3 Oct 2004 11:33:53 +0000 (11:33 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 3 Oct 2004 11:33:53 +0000 (11:33 +0000)
2004-10-03  Paolo Carlini  <pcarlini@suse.de>

* include/bits/sstream.tcc (seekpos): In case of success, just
return __sp.

From-SVN: r88443

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

index ff73a85c1555060fda1bcd5e3e392132a1faa1ab..8167ae06427cb0077d7ec616490b8d044712bacc 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-03  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/sstream.tcc (seekpos): In case of success, just
+       return __sp.
+
 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/sstream.tcc (pbackfail): Implement correctly
index 76cda2974eed72c77516ecd4e977c6927e2ba5b9..985a0e46d07311069024452d2ef9c346c63ba687 100644 (file)
@@ -205,7 +205,7 @@ namespace std
                this->gbump((__beg + __pos) - this->gptr());
              if (__testout)
                 this->pbump((__beg + __pos) - this->pptr());
-             __ret = pos_type(off_type(__pos));
+             __ret = __sp;
            }
        }
       return __ret;