2003-05-30 Paolo Carlini <pcarlini@unitus.it>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 May 2003 11:39:56 +0000 (11:39 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 May 2003 11:39:56 +0000 (11:39 +0000)
* include/bits/fstream.tcc (_M_convert_to_external): Don't
check for __ilen > 0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67240 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc

index e503c7e..04a9895 100644 (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
index 9bbb5cc..b791579 100644 (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;