summaryrefslogtreecommitdiff
path: root/ace/ACE.i
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-31 13:52:10 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-31 13:52:10 +0000
commit99662abeaff5296ac280f02f3d96a73244807284 (patch)
tree1650abb925dee02e682864ebc616c030f72e790d /ace/ACE.i
parente7109d9b33ca2ad11eaa20e46a966a2199a8d002 (diff)
downloadATCD-99662abeaff5296ac280f02f3d96a73244807284.tar.gz
moved "log" declaration outside of for loop because it's used after the loop
Diffstat (limited to 'ace/ACE.i')
-rw-r--r--ace/ACE.i4
1 files changed, 3 insertions, 1 deletions
diff --git a/ace/ACE.i b/ace/ACE.i
index d6d3398a053..21fc7c60153 100644
--- a/ace/ACE.i
+++ b/ace/ACE.i
@@ -68,7 +68,9 @@ ACE::get_flags (ACE_HANDLE handle)
inline u_long
ACE::log2 (u_long num)
{
- for (u_long log = 0;
+ u_long log = 0;
+
+ for (;
num > 0;
log++)
num >>= 1;