std_streambuf.h (uflow): According to 27.5.2.4.3,p16, don't check gptr() < egptr().
authorPaolo Carlini <pcarlini@unitus.it>
Sun, 29 Jun 2003 10:31:06 +0000 (12:31 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 29 Jun 2003 10:31:06 +0000 (10:31 +0000)
2003-06-29  Paolo Carlini  <pcarlini@unitus.it>

* include/std/std_streambuf.h (uflow): According to
27.5.2.4.3,p16, don't check gptr() < egptr().

From-SVN: r68664

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

index 0304542596f07da3f8852521d909168890f0d9f0..b2907b383d7bd791ef6dffe954355be11bc70f8c 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/std/std_streambuf.h (uflow): According to
+       27.5.2.4.3,p16, don't check gptr() < egptr().
+
 2003-06-28  Paolo Carlini  <pcarlini@unitus.it>
 
        PR libstdc++/9875
index bf6aa4282801816b317c9b31bf69cf9d9a476d86..f29fea5f5b7a52cab79fe94d327189a81307c074 100644 (file)
@@ -692,7 +692,7 @@ namespace std
        int_type __ret = traits_type::eof();
        const bool __testeof = traits_type::eq_int_type(this->underflow(), 
                                                        __ret);
-       if (!__testeof && this->gptr() < this->egptr())
+       if (!__testeof)
          {
            __ret = traits_type::to_int_type(*this->gptr());
            this->gbump(1);