Fixed iostream usage (gcc 3.4 regressions)

[SVN r21271]
This commit is contained in:
John Maddock
2003-12-15 12:31:05 +00:00
parent 3c0eed1fed
commit 89f71e245f

View File

@ -88,9 +88,9 @@ parser_buf<charT, traits>::seekpos(pos_type sp, ::std::ios_base::openmode which)
return pos_type(off_type(-1)); return pos_type(off_type(-1));
int size = this->egptr() - this->eback(); int size = this->egptr() - this->eback();
charT* g = 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)); return pos_type(off_type(-1));
} }