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;