From 90319d169817d2874c187fb4f94acb23ff159e53 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Sun, 29 Jun 2003 12:31:06 +0200 Subject: [PATCH] std_streambuf.h (uflow): According to 27.5.2.4.3,p16, don't check gptr() < egptr(). 2003-06-29 Paolo Carlini * 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 | 5 +++++ libstdc++-v3/include/std/std_streambuf.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 0304542596f0..b2907b383d7b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-06-29 Paolo Carlini + + * include/std/std_streambuf.h (uflow): According to + 27.5.2.4.3,p16, don't check gptr() < egptr(). + 2003-06-28 Paolo Carlini PR libstdc++/9875 diff --git a/libstdc++-v3/include/std/std_streambuf.h b/libstdc++-v3/include/std/std_streambuf.h index bf6aa4282801..f29fea5f5b7a 100644 --- a/libstdc++-v3/include/std/std_streambuf.h +++ b/libstdc++-v3/include/std/std_streambuf.h @@ -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);