diff options
| author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-22 19:24:01 +0000 |
|---|---|---|
| committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-22 19:24:01 +0000 |
| commit | eebdfce3606c02f1ae034aa758ea8858ecad0743 (patch) | |
| tree | d4f85f76cc4c7ec4d34475cacb2057023e9860bf /libstdc++ | |
| parent | 83f2484709474992b6c059021951775e88f558ad (diff) | |
| download | ppe42-gcc-eebdfce3606c02f1ae034aa758ea8858ecad0743.tar.gz ppe42-gcc-eebdfce3606c02f1ae034aa758ea8858ecad0743.zip | |
* stl/bitset (bitset::_M_is_any): Don't use __BITSET_WORDS macro
on _Nw since _Nw is already the number of words in the bitset.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35885 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++')
| -rw-r--r-- | libstdc++/stl/ChangeLog | 5 | ||||
| -rw-r--r-- | libstdc++/stl/bitset | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++/stl/ChangeLog b/libstdc++/stl/ChangeLog index d4b7cc78cae..6e97abde70b 100644 --- a/libstdc++/stl/ChangeLog +++ b/libstdc++/stl/ChangeLog @@ -1,3 +1,8 @@ +2000-08-22 Geoff Berry <geoffb@bops.com> + + * bitset (bitset::_M_is_any): Don't use __BITSET_WORDS macro + on _Nw since _Nw is already the number of words in the bitset. + 2000-07-10 Martin v. Löwis (loewis@informatik.hu-berlin.de) * stl_function.h (bind1st, bind2nd): Rename __opr to __oper, diff --git a/libstdc++/stl/bitset b/libstdc++/stl/bitset index 8b4f8b1a0f8..3b702ab1f4c 100644 --- a/libstdc++/stl/bitset +++ b/libstdc++/stl/bitset @@ -144,7 +144,7 @@ struct _Base_bitset { } bool _M_is_any() const { - for ( size_t __i = 0; __i < __BITSET_WORDS(_Nw,_WordT); __i++ ) { + for ( size_t __i = 0; __i < _Nw; __i++ ) { if ( _M_w[__i] != static_cast<_WordT>(0) ) return true; } |

