From fd10aff9aa90cc071e93b73854cebaffe3f21ffa Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 30 May 2003 10:45:52 +0000 Subject: [PATCH] removed dependency on std::ptrdiff_t [SVN r18605] --- test/boost_no_std_wstreambuf.ipp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/boost_no_std_wstreambuf.ipp b/test/boost_no_std_wstreambuf.ipp index 445dd2e9..ee19b570 100644 --- a/test/boost_no_std_wstreambuf.ipp +++ b/test/boost_no_std_wstreambuf.ipp @@ -49,8 +49,8 @@ parser_buf::seekoff(off_type off, ::std::ios_base::seekdir way, : typedef typename parser_buf::pos_type pos_type; if(which & ::std::ios_base::out) return pos_type(off_type(-1)); - std::ptrdiff_t size = this->egptr() - this->eback(); - std::ptrdiff_t pos = this->gptr() - this->eback(); + int size = this->egptr() - this->eback(); + int pos = this->gptr() - this->eback(); charT* g = this->eback(); switch(way) { @@ -66,7 +66,7 @@ parser_buf::seekoff(off_type off, ::std::ios_base::seekdir way, : this->setg(g, g + size - off, g + size); case ::std::ios_base::cur: { - std::ptrdiff_t newpos = pos + off; + int newpos = pos + off; if((newpos < 0) || (newpos > size)) return pos_type(off_type(-1)); else @@ -82,7 +82,7 @@ parser_buf::seekpos(pos_type sp, ::std::ios_base::openmode which) { if(which & ::std::ios_base::out) return pos_type(off_type(-1)); - std::ptrdiff_t size = this->egptr() - this->eback(); + int size = this->egptr() - this->eback(); charT* g = this->eback(); if(sp <= size) {