diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-24 20:21:48 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-24 20:21:48 +0000 |
commit | 262c6367352ee365cb78533d503308e0d2d64c6d (patch) | |
tree | bb9b727a8c29b45955f6b757c5a9d970afeb4dbf /libstdc++-v3 | |
parent | fdd3cda595720c3cf2503ecbdc2102f866a16a15 (diff) | |
download | gcc-262c6367352ee365cb78533d503308e0d2d64c6d.tar.gz |
2003-10-24 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (__verify_grouping):
Prefer '=' to an unnecessary '&='.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72908 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/locale_facets.tcc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index eecb7bc5940..999cadbe29c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 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&)): Tweak my fix for libstdc++/12657. diff --git a/libstdc++-v3/include/bits/locale_facets.tcc b/libstdc++-v3/include/bits/locale_facets.tcc index 5e8128efa7b..4804e9b8c17 100644 --- a/libstdc++-v3/include/bits/locale_facets.tcc +++ b/libstdc++-v3/include/bits/locale_facets.tcc @@ -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; |