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)); }