locale_facets.tcc (__verify_grouping): Prefer '=' to an unnecessary '&='.
authorPaolo Carlini <pcarlini@suse.de>
Fri, 24 Oct 2003 20:21:48 +0000 (20:21 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 24 Oct 2003 20:21:48 +0000 (20:21 +0000)
2003-10-24  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (__verify_grouping):
Prefer '=' to an unnecessary '&='.

From-SVN: r72908

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

index eecb7bc594040d07de9b8305c066b97b53d75984..999cadbe29c73a5a377f9928cfd9dd2c65fc995c 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-24  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/locale_facets.tcc (__verify_grouping):
+       Prefer '=' to an unnecessary '&='.
+
 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
index 5e8128efa7bdcbbf87d3bf4e3b8e4490e0a3cc23..4804e9b8c1746b67ecb6c53165939aba7e9231c3 100644 (file)
@@ -2264,8 +2264,8 @@ namespace std
       // numpunct::grouping string exactly, starting at the
       // right-most point of the parsed sequence of elements ...
       while (__test && __i < __n - 1)
-       for (__j = 0; __test && __j < __len && __i < __n - 1; ++__j,++__i)
-         __test &= __grouping[__j] == __grouping_tmp[__n - __i - 1];
+       for (__j = 0; __test && __j < __len && __i < __n - 1; ++__j, ++__i)
+         __test = __grouping[__j] == __grouping_tmp[__n - __i - 1];
       // ... but the last parsed grouping can be <= numpunct
       // grouping.
       __j == __len ? __j = 0 : __j;