summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-29 17:47:38 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-29 17:47:38 +0000
commit86e704df88c4640e3c70bab73fd0ba5f9ef6e429 (patch)
tree21e0b678584b6d55b831138b27fc2880e8ee74ee /libstdc++-v3
parenta2887365bb3da370ff1a513bb7fd7e7efab48f40 (diff)
downloadgcc-86e704df88c4640e3c70bab73fd0ba5f9ef6e429.tar.gz
2003-04-29 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_sstream.h (underflow): Change to single return. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66234 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/std/std_sstream.h6
2 files changed, 8 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 9dbc3a18e0f..366f5a7754d 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2003-04-29 Paolo Carlini <pcarlini@unitus.it>
+
+ * include/std/std_sstream.h (underflow): Change to single return.
+
2003-04-28 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (_M_buf): is currently
diff --git a/libstdc++-v3/include/std/std_sstream.h b/libstdc++-v3/include/std/std_sstream.h
index cd8faa08861..10fe05702e7 100644
--- a/libstdc++-v3/include/std/std_sstream.h
+++ b/libstdc++-v3/include/std/std_sstream.h
@@ -190,10 +190,12 @@ namespace std
virtual int_type
underflow()
{
+ int_type __ret;
if (this->_M_in_cur < this->_M_in_end)
- return traits_type::to_int_type(*this->_M_in_cur);
+ __ret = traits_type::to_int_type(*this->_M_in_cur);
else
- return traits_type::eof();
+ __ret = traits_type::eof();
+ return __ret;
}
// [documentation is inherited]