sstream.tcc (seekpos): In case of success, just return __sp.

2004-10-03  Paolo Carlini  <pcarlini@suse.de>

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

From-SVN: r88443
This commit is contained in:
Paolo Carlini 2004-10-03 11:33:53 +00:00 committed by Paolo Carlini
parent fe7378d2bf
commit 9d7bc6de21
2 changed files with 6 additions and 1 deletions

View 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

View 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;