summaryrefslogtreecommitdiff
path: root/ace/Handle_Set.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-08-30 19:32:42 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-08-30 19:32:42 +0000
commit6a4d079a1330b91c50af8909ddd673f65e667fec (patch)
treea5f7df2c92c6559d1d97ae740e6ec283553fceaa /ace/Handle_Set.cpp
parent318ea665ab5316e3d40ba4a6aca7715f174ff072 (diff)
downloadATCD-6a4d079a1330b91c50af8909ddd673f65e667fec.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Handle_Set.cpp')
-rw-r--r--ace/Handle_Set.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ace/Handle_Set.cpp b/ace/Handle_Set.cpp
index 28858db233f..ce5ce1af3fa 100644
--- a/ace/Handle_Set.cpp
+++ b/ace/Handle_Set.cpp
@@ -89,7 +89,7 @@ ACE_Handle_Set::count_bits (u_long n) const
ACE_TRACE ("ACE_Handle_Set::count_bits");
int rval = 0;
- for (int i = 0; i < sizeof (u_long); i++)
+ for (int i = 0; n != 0; i++)
{
rval += ACE_Handle_Set::nbits_[n & 0xff];
n >>= 8;