$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: technews_at_[hidden]
Date: 2007-12-30 04:52:15
Author: turkanis
Date: 2007-12-30 04:52:13 EST (Sun, 30 Dec 2007)
New Revision: 42368
URL: http://svn.boost.org/trac/boost/changeset/42368
Log:
simplified the optimization applied in the last commit (ticket #817)
Text files modified: 
   branches/iostreams_dev/boost/iostreams/detail/streambuf/indirect_streambuf.hpp |     6 ++----                                  
   1 files changed, 2 insertions(+), 4 deletions(-)
Modified: branches/iostreams_dev/boost/iostreams/detail/streambuf/indirect_streambuf.hpp
==============================================================================
--- branches/iostreams_dev/boost/iostreams/detail/streambuf/indirect_streambuf.hpp	(original)
+++ branches/iostreams_dev/boost/iostreams/detail/streambuf/indirect_streambuf.hpp	2007-12-30 04:52:13 EST (Sun, 30 Dec 2007)
@@ -346,10 +346,8 @@
          eback() - gptr() <= off && off <= egptr() - gptr() ) 
     {   // Small seek optimization
         gbump(off);
-        return offset_to_position(
-                   obj().seek(0, BOOST_IOS::cur, BOOST_IOS::in, next_) -
-                   static_cast<std::streamoff>(egptr() - gptr())
-               );
+        return obj().seek(0, BOOST_IOS::cur, BOOST_IOS::in, next_) -
+               static_cast<off_type>(egptr() - gptr());
     }
     if (pptr() != 0) 
         this->BOOST_IOSTREAMS_PUBSYNC(); // sync() confuses VisualAge 6.