fstream.tcc (xsgetn): Slightly tweak conditional, as per Nathan's original suggestion.

2004-09-17  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
	as per Nathan's original suggestion.

From-SVN: r87647
This commit is contained in:
Paolo Carlini 2004-09-17 14:01:18 +00:00 committed by Paolo Carlini
parent cd1a8088eb
commit c93af6f23d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-09-17 Paolo Carlini <pcarlini@suse.de>
* include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
as per Nathan's original suggestion.
2004-09-17 Paolo Carlini <pcarlini@suse.de>
* testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean

View File

@ -527,7 +527,7 @@ namespace std
{
if (__avail == 1)
*__s = *this->gptr();
else if (__avail > 1)
else
traits_type::copy(__s, this->gptr(), __avail);
__s += __avail;
this->gbump(__avail);