[PATCH] fix locale_facets.tcc __pad lossage
Nathan Myers
ncm-nospam@cantrip.org
Thu Aug 21 20:04:00 GMT 2003
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;
More information about the Libstdc++
mailing list