fstream.tcc (_M_convert_to_external): Don't check for __ilen > 0.

2003-05-30  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/fstream.tcc (_M_convert_to_external): Don't
	check for __ilen > 0.

From-SVN: r67240
This commit is contained in:
Paolo Carlini 2003-05-30 13:39:56 +02:00 committed by Paolo Carlini
parent 61d74548d6
commit c5b6351bd6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-05-30 Paolo Carlini <pcarlini@unitus.it>
* include/bits/fstream.tcc (_M_convert_to_external): Don't
check for __ilen > 0.
2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
PR libstdc++/10783

View File

@ -376,7 +376,7 @@ namespace std
streamsize __elen = 0;
streamsize __plen = 0;
if (__check_facet(_M_codecvt).always_noconv() && __ilen)
if (__check_facet(_M_codecvt).always_noconv())
{
__elen += _M_file.xsputn(reinterpret_cast<char*>(__ibuf), __ilen);
__plen += __ilen;