diff options
author | chatty | 1995-07-13 13:05:34 +0000 |
---|---|---|
committer | chatty | 1995-07-13 13:05:34 +0000 |
commit | 0f8ae3031b2f683a04dd77b1751af4fec72902c9 (patch) | |
tree | d7152cb99d55b9d120226484748ff71f1834d738 /utils/IdTable.cc | |
parent | 52985e49dbbf4e35c2b725ffc835a4bd34232d58 (diff) | |
download | ivy-league-0f8ae3031b2f683a04dd77b1751af4fec72902c9.zip ivy-league-0f8ae3031b2f683a04dd77b1751af4fec72902c9.tar.gz ivy-league-0f8ae3031b2f683a04dd77b1751af4fec72902c9.tar.bz2 ivy-league-0f8ae3031b2f683a04dd77b1751af4fec72902c9.tar.xz |
Moved a couple of declarations to please g++ 2.7
Diffstat (limited to 'utils/IdTable.cc')
-rw-r--r-- | utils/IdTable.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/IdTable.cc b/utils/IdTable.cc index bfca17a..193973c 100644 --- a/utils/IdTable.cc +++ b/utils/IdTable.cc @@ -89,7 +89,8 @@ CcuIdTable :: CcuIdTable (int sz) // link free entries with the 'Type' field int i = 0; - for (CcuIdCell* p = Entries; p < LastCell; p++) + CcuIdCell* p; + for (p = Entries; p < LastCell; p++) p->Type = ++i; (--p)->Type = 0; // end of free list @@ -123,7 +124,8 @@ CcuIdTable :: Grow (int newNb) // link free entries with the 'Type' field int i = nb; - for (CcuIdCell* p = Entries + nb; p < LastCell; p++) + CcuIdCell* p; + for (p = Entries + nb; p < LastCell; p++) p->Type = ++i; // prepend to current free list (to use them first) (--p)->Type = FirstFree; |