Changeset 40930 in vbox
- Timestamp:
- Apr 16, 2012 3:27:57 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/alloc/heapoffset.cpp
r35525 r40930 508 508 static PRTHEAPOFFSETBLOCK rtHeapOffsetAllocBlock(PRTHEAPOFFSETINTERNAL pHeapInt, size_t cb, size_t uAlignment) 509 509 { 510 PRTHEAPOFFSETBLOCK pRet = NULL;510 PRTHEAPOFFSETBLOCK pRet = (PRTHEAPOFFSETBLOCK)NULL; 511 511 PRTHEAPOFFSETFREE pFree; 512 512 513 AssertReturn((pHeapInt)->u32Magic == RTHEAPOFFSET_MAGIC, NULL);513 AssertReturn((pHeapInt)->u32Magic == RTHEAPOFFSET_MAGIC, (PRTHEAPOFFSETBLOCK)NULL); 514 514 #ifdef RTHEAPOFFSET_STRICT 515 515 rtHeapOffsetAssertAll(pHeapInt); … … 704 704 * of us (both lists are sorted by address). 705 705 */ 706 pLeft = NULL;707 pRight = NULL;706 pLeft = (PRTHEAPOFFSETFREE)NULL; 707 pRight = (PRTHEAPOFFSETFREE)NULL; 708 708 if (pHeapInt->offFreeTail) 709 709 { … … 814 814 static void rtHeapOffsetAssertAll(PRTHEAPOFFSETINTERNAL pHeapInt) 815 815 { 816 PRTHEAPOFFSETFREE pPrev = NULL;817 PRTHEAPOFFSETFREE pPrevFree = NULL;816 PRTHEAPOFFSETFREE pPrev = (PRTHEAPOFFSETFREE)NULL; 817 PRTHEAPOFFSETFREE pPrevFree = (PRTHEAPOFFSETFREE)NULL; 818 818 PRTHEAPOFFSETFREE pBlock; 819 819 for (pBlock = (PRTHEAPOFFSETFREE)(pHeapInt + 1);
Note:
See TracChangeset
for help on using the changeset viewer.