From 89f71e245f096ee946f58096bc6cac355fc5c044 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Mon, 15 Dec 2003 12:31:05 +0000 Subject: [PATCH] Fixed iostream usage (gcc 3.4 regressions) [SVN r21271] --- test/boost_no_std_wstreambuf.ipp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/boost_no_std_wstreambuf.ipp b/test/boost_no_std_wstreambuf.ipp index 5d0e7aa7..1be252ee 100644 --- a/test/boost_no_std_wstreambuf.ipp +++ b/test/boost_no_std_wstreambuf.ipp @@ -88,9 +88,9 @@ parser_buf::seekpos(pos_type sp, ::std::ios_base::openmode which) return pos_type(off_type(-1)); int size = this->egptr() - this->eback(); charT* g = this->eback(); - if(sp <= size) + if(off_type(sp) <= size) { - this->setg(g, g + ::std::streamsize(sp), g + size); + this->setg(g, g + off_type(sp), g + size); } return pos_type(off_type(-1)); }