This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fix locale_facets.tcc __pad lossage


I beliieve this has the same effect as both Benjamin's formulation 
and Paolo's previous code, but without the compiler warning.

If this is OK, would somebody please apply it for me?  

Thanks,
Nathan Myers
ncm-nospam@cantrip.org

2003-08-21  Nathan Myers  <ncm@cantrip.org>

	* include/bits/locale_facets.tcc (__pad): delete dead code.

Index: include/bits/locale_facets.tcc
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/include/bits/locale_facets.tcc,v
retrieving revision 1.110
diff -u -r1.110 locale_facets.tcc
--- include/bits/locale_facets.tcc	18 Jul 2003 02:27:15 -0000	1.110
+++ include/bits/locale_facets.tcc	21 Aug 2003 19:47:14 -0000
@@ -2238,7 +2238,7 @@
 	    }
 	  else if (__testsign)
 	    {
-	      _Traits::eq((__news[0] = __olds[0]), __plus) ? __plus : __minus;
+	      __news[0] = __olds[0];
 	      ++__mod;
 	      ++__news;
 	      __beg = __pads;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]