VirtualBox

Changeset 36969 in vbox


Ignore:
Timestamp:
May 5, 2011 8:59:43 AM (14 years ago)
Author:
vboxsync
Message:

more gcc-4.6 -Werror=int-to-pointer-cast fixes

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp

    r36912 r36969  
    316316                                  ~0, &Value, pvUser);
    317317                Log4((RT_SUCCESS(rc) ? "RTLdrPE:  %RTptr %s\n" : "RTLdrPE:  %08RX32 %s rc=%Rrc\n",
    318                       (uint32_t)Value, PE_RVA2TYPE(pvBitsR, (char*)pThunk->u1.AddressOfData + 2, const char *), rc));
     318                      (uint32_t)Value, PE_RVA2TYPE(pvBitsR, (char*)(uintptr_t)pThunk->u1.AddressOfData + 2, const char *), rc));
    319319            }
    320320            else
  • trunk/src/VBox/VMM/VMMR3/CSAM.cpp

    r36912 r36969  
    19841984    PCSAMPAGEREC pPageRec;
    19851985
    1986     pPageRec = (PCSAMPAGEREC)RTAvlPVGet(&pVM->csam.s.pPageTree, (AVLPVKEY)pPageAddrGC);
     1986    pPageRec = (PCSAMPAGEREC)RTAvlPVGet(&pVM->csam.s.pPageTree, (AVLPVKEY)(uintptr_t)pPageAddrGC);
    19871987    Assert(pPageRec && pPageRec->page.enmTag == enmTag);
    19881988#endif
  • trunk/src/VBox/VMM/VMMR3/PATM.cpp

    r36912 r36969  
    20132013    pRec = (PAVLPVNODECORE)MMR3HeapAllocZ(pVM, MM_TAG_PATM_PATCH, sizeof(*pRec));
    20142014    Assert(pRec);
    2015     pRec->Key = (AVLPVKEY)pInstrGC;
     2015    pRec->Key = (AVLPVKEY)(uintptr_t)pInstrGC;
    20162016
    20172017    int ret = RTAvlPVInsert(&pPatch->pTempInfo->DisasmJumpTree, pRec);
     
    20312031    PAVLPVNODECORE pRec;
    20322032
    2033     pRec = RTAvlPVGet(&pPatch->pTempInfo->DisasmJumpTree, (AVLPVKEY)pInstrGC);
     2033    pRec = RTAvlPVGet(&pPatch->pTempInfo->DisasmJumpTree, (AVLPVKEY)(uintptr_t)pInstrGC);
    20342034    if (pRec)
    20352035        return true;
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