From 180ca3a1bbfbadb7e3a819f8c1a9bad962dbaa3c Mon Sep 17 00:00:00 2001
From: Geoff Berry <geoffb@bops.com>
Date: Tue, 22 Aug 2000 19:24:01 +0000
Subject: [PATCH] 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
---
 libstdc++/stl/ChangeLog | 5 +++++
 libstdc++/stl/bitset    | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/libstdc++/stl/ChangeLog b/libstdc++/stl/ChangeLog
index d4b7cc78caec..6e97abde70b8 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 8b4f8b1a0f80..3b702ab1f4c0 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;
     }
-- 
GitLab