VirtualBox

Ignore:
Timestamp:
Nov 26, 2009 2:22:44 PM (15 years ago)
Author:
vboxsync
Message:

IPRT: Fixed -Wshadow warnings, found two bugs in error paths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/handletablesimple.cpp

    r24181 r25000  
    170170                /* link all entries into a free list. */
    171171                Assert(!(pThis->cCur % RTHT_LEVEL2_ENTRIES));
    172                 for (uint32_t i = 0; i < RTHT_LEVEL2_ENTRIES - 1; i++)
     172                for (i = 0; i < RTHT_LEVEL2_ENTRIES - 1; i++)
    173173                    RTHT_SET_FREE_IDX((PRTHTENTRYFREE)&paTable[i], i + 1 + pThis->cCur);
    174174                RTHT_SET_FREE_IDX((PRTHTENTRYFREE)&paTable[RTHT_LEVEL2_ENTRIES - 1], NIL_RTHT_INDEX);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette