This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Fix a (long standing) silly line in stringbuf::seekpos
- From: Paolo Carlini <pcarlini at suse dot de>
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 03 Oct 2004 13:36:00 +0200
- Subject: [v3] Fix a (long standing) silly line in stringbuf::seekpos
Hi,
tested x86-linux, committed.
Paolo.
////////////
2004-10-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/sstream.tcc (seekpos): In case of success, just
return __sp.
diff -urN libstdc++-v3-orig/include/bits/sstream.tcc libstdc++-v3/include/bits/sstream.tcc
--- libstdc++-v3-orig/include/bits/sstream.tcc 2004-10-01 17:49:15.000000000 +0200
+++ libstdc++-v3/include/bits/sstream.tcc 2004-10-03 00:49:37.000000000 +0200
@@ -205,7 +205,7 @@
this->gbump((__beg + __pos) - this->gptr());
if (__testout)
this->pbump((__beg + __pos) - this->pptr());
- __ret = pos_type(off_type(__pos));
+ __ret = __sp;
}
}
return __ret;