istream.tcc (istream::ignore): Fix for -Wuninitialized.

2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>

	* include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.

From-SVN: r82939
This commit is contained in:
Aaron W. LaFramboise 2004-06-10 19:54:59 +00:00 committed by Benjamin Kosnik
parent aa6c7c3a3a
commit bdd2a210b8
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
* include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
* include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make

View File

@ -655,7 +655,7 @@ namespace std
{
const int_type __eof = traits_type::eof();
__streambuf_type* __sb = this->rdbuf();
int_type __c;
int_type __c = __eof;
if (__n != numeric_limits<streamsize>::max())
--__n;