diff options
author | Geoff Berry <geoffb@bops.com> | 2000-08-22 19:24:01 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2000-08-22 13:24:01 -0600 |
commit | 180ca3a1bbfbadb7e3a819f8c1a9bad962dbaa3c (patch) | |
tree | d4f85f76cc4c7ec4d34475cacb2057023e9860bf | |
parent | 72972a41a7b24da93d2f7277441f6c16f8b7b5c7 (diff) | |
download | gcc-180ca3a1bbfbadb7e3a819f8c1a9bad962dbaa3c.zip gcc-180ca3a1bbfbadb7e3a819f8c1a9bad962dbaa3c.tar.gz gcc-180ca3a1bbfbadb7e3a819f8c1a9bad962dbaa3c.tar.bz2 |
bitset (bitset::_M_is_any): Don't use __BITSET_WORDS macro on _Nw since _Nw is already the number of words...
* 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.
From-SVN: r35885
-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 d4b7cc7..6e97abd 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 8b4f8b1..3b702ab 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; } |