This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Remove a reduntant/wrong check from _M_convert_to_external
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 May 2003 13:43:19 +0200
- Subject: [v3] Remove a reduntant/wrong check from _M_convert_to_external
Hi,
tested x86-linux.
Paolo.
////////
2003-05-30 Paolo Carlini <pcarlini@unitus.it>
* include/bits/fstream.tcc (_M_convert_to_external): Don't
check for __ilen > 0.
diff -urN libstdc++-v3-orig/include/bits/fstream.tcc libstdc++-v3/include/bits/fstream.tcc
--- libstdc++-v3-orig/include/bits/fstream.tcc 2003-05-29 13:02:27.000000000 +0200
+++ libstdc++-v3/include/bits/fstream.tcc 2003-05-29 22:22:15.000000000 +0200
@@ -376,7 +376,7 @@
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;