2005-01-02 Paolo Carlini <pcarlini@suse.de>
commit8fe6fa5af586733724e5e1240dbfdf0c0cec9c7c
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Jan 2005 00:02:47 +0000 (3 00:02 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Jan 2005 00:02:47 +0000 (3 00:02 +0000)
tree146256ff5e26b155136c80927e19e8b3c49a6faf
parent33296cfaf4f673fa5ca21a051673fa3532966a74
2005-01-02  Paolo Carlini  <pcarlini@suse.de>

* src/istream.cc (basic_istream<char>::ignore(streamsize),
basic_istream<char>::ignore(streamsize, int_type),
basic_istream<wchar_t>::ignore(streamsize),
basic_istream<wchar_t>::ignore(streamsize, int_type)): Avoid
_M_gcount overflows.
* include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
int_type)): Likewise; use snextc in the main loop, consistently
with the specializations above.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92816 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/istream.tcc
libstdc++-v3/src/istream.cc