From: Paolo Carlini Date: Sun, 3 Oct 2004 11:33:53 +0000 (+0000) Subject: sstream.tcc (seekpos): In case of success, just return __sp. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d7bc6de21661cdaf202323d095bdecbda045fb0;p=gcc.git sstream.tcc (seekpos): In case of success, just return __sp. 2004-10-03 Paolo Carlini * include/bits/sstream.tcc (seekpos): In case of success, just return __sp. From-SVN: r88443 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ff73a85c155..8167ae06427 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2004-10-03 Paolo Carlini + + * include/bits/sstream.tcc (seekpos): In case of success, just + return __sp. + 2004-10-01 Paolo Carlini * include/bits/sstream.tcc (pbackfail): Implement correctly diff --git a/libstdc++-v3/include/bits/sstream.tcc b/libstdc++-v3/include/bits/sstream.tcc index 76cda2974ee..985a0e46d07 100644 --- a/libstdc++-v3/include/bits/sstream.tcc +++ b/libstdc++-v3/include/bits/sstream.tcc @@ -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;