From 9d7bc6de21661cdaf202323d095bdecbda045fb0 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Sun, 3 Oct 2004 11:33:53 +0000 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/sstream.tcc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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;