VirtualBox

Changeset 9346 in vbox for trunk/src


Ignore:
Timestamp:
Jun 3, 2008 11:20:16 AM (17 years ago)
Author:
vboxsync
Message:

gcc don't allow casting 64-bit integer to a 32-bit pointer, so cast via uintptr_t.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/TRPMGCHandlers.cpp

    r9344 r9346  
    470470    if (SELMValidateAndConvertCSAddr(pVM, pRegFrame->eflags, pRegFrame->ss, pRegFrame->cs, &pRegFrame->csHid, (RTGCPTR)pRegFrame->eip, &GCPtr) == VINF_SUCCESS)
    471471    {
    472         uint8_t *pu8Code = (uint8_t *)GCPtr;
     472        uint8_t *pu8Code = (uint8_t *)(uintptr_t)GCPtr;
     473
    473474        /*
    474475         * First skip possible instruction prefixes, such as:
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