Changeset 331 in vbox for trunk/src/VBox/Runtime/alloc
- Timestamp:
- Jan 25, 2007 8:47:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/alloc/heapsimple.cpp
r329 r331 311 311 - sizeof(RTHEAPSIMPLEINTERNAL); 312 312 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++) 314 315 pHeapInt->auAlignment[i] = ~(size_t)0; 315 316 … … 448 449 */ 449 450 PRTHEAPSIMPLEBLOCK pRet = NULL; 450 for (PRTHEAPSIMPLEFREE pFree = pHeapInt->pFreeHead; 451 PRTHEAPSIMPLEFREE pFree; 452 for (pFree = pHeapInt->pFreeHead; 451 453 pFree; 452 454 pFree = pFree->pNext) … … 768 770 PRTHEAPSIMPLEFREE pPrev = NULL; 769 771 PRTHEAPSIMPLEFREE pPrevFree = NULL; 770 for (PRTHEAPSIMPLEFREE pBlock = (PRTHEAPSIMPLEFREE)(pHeapInt + 1); 772 PRTHEAPSIMPLEFREE pBlock; 773 for (pBlock = (PRTHEAPSIMPLEFREE)(pHeapInt + 1); 771 774 pBlock; 772 775 pBlock = (PRTHEAPSIMPLEFREE)pBlock->Core.pNext) … … 881 884 Heap, pHeapInt->cbHeap, pHeapInt->cbFree); 882 885 883 for (PRTHEAPSIMPLEFREE pBlock = (PRTHEAPSIMPLEFREE)(pHeapInt + 1); 886 PRTHEAPSIMPLEFREE pBlock; 887 for (pBlock = (PRTHEAPSIMPLEFREE)(pHeapInt + 1); 884 888 pBlock; 885 889 pBlock = (PRTHEAPSIMPLEFREE)pBlock->Core.pNext)
Note:
See TracChangeset
for help on using the changeset viewer.