VirtualBox

Changeset 331 in vbox for trunk/src/VBox/Runtime/alloc


Ignore:
Timestamp:
Jan 25, 2007 8:47:51 PM (18 years ago)
Author:
vboxsync
Message:

Bool and AMD64 hacking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/alloc/heapsimple.cpp

    r329 r331  
    311311                     - sizeof(RTHEAPSIMPLEINTERNAL);
    312312    pHeapInt->pFreeTail = pHeapInt->pFreeHead = (PRTHEAPSIMPLEFREE)(pHeapInt + 1);
    313     for (unsigned i = 0; i < ELEMENTS(pHeapInt->auAlignment); i++)
     313    unsigned i;
     314    for (i = 0; i < ELEMENTS(pHeapInt->auAlignment); i++)
    314315        pHeapInt->auAlignment[i] = ~(size_t)0;
    315316
     
    448449     */
    449450    PRTHEAPSIMPLEBLOCK  pRet = NULL;
    450     for (PRTHEAPSIMPLEFREE pFree = pHeapInt->pFreeHead;
     451    PRTHEAPSIMPLEFREE   pFree;
     452    for (pFree = pHeapInt->pFreeHead;
    451453         pFree;
    452454         pFree = pFree->pNext)
     
    768770    PRTHEAPSIMPLEFREE pPrev = NULL;
    769771    PRTHEAPSIMPLEFREE pPrevFree = NULL;
    770     for (PRTHEAPSIMPLEFREE pBlock = (PRTHEAPSIMPLEFREE)(pHeapInt + 1);
     772    PRTHEAPSIMPLEFREE pBlock;
     773    for (pBlock = (PRTHEAPSIMPLEFREE)(pHeapInt + 1);
    771774         pBlock;
    772775         pBlock = (PRTHEAPSIMPLEFREE)pBlock->Core.pNext)
     
    881884              Heap, pHeapInt->cbHeap, pHeapInt->cbFree);
    882885
    883     for (PRTHEAPSIMPLEFREE pBlock = (PRTHEAPSIMPLEFREE)(pHeapInt + 1);
     886    PRTHEAPSIMPLEFREE pBlock;
     887    for (pBlock = (PRTHEAPSIMPLEFREE)(pHeapInt + 1);
    884888         pBlock;
    885889         pBlock = (PRTHEAPSIMPLEFREE)pBlock->Core.pNext)
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