std_sstream.h (underflow): Change to single return.
authorPaolo Carlini <pcarlini@unitus.it>
Tue, 29 Apr 2003 17:47:38 +0000 (19:47 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 29 Apr 2003 17:47:38 +0000 (17:47 +0000)
2003-04-29  Paolo Carlini  <pcarlini@unitus.it>

* include/std/std_sstream.h (underflow): Change to single return.

From-SVN: r66234

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/std_sstream.h

index 9dbc3a1..366f5a7 100644 (file)
@@ -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
index cd8faa0..10fe057 100644 (file)
@@ -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]