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
This commit is contained in:
parent
72972a41a7
commit
180ca3a1bb
@ -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,
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user