VirtualBox

Changeset 26259 in vbox


Ignore:
Timestamp:
Feb 5, 2010 1:34:23 AM (15 years ago)
Author:
vboxsync
Message:

PGMPhys.cpp: warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMPhys.cpp

    r26150 r26259  
    494494            }
    495495
    496             *ppv = (void *)((uintptr_t)pTlbe->pv | (GCPhys & PAGE_OFFSET_MASK));
     496            *ppv = (void *)((uintptr_t)pTlbe->pv | (uintptr_t)(GCPhys & PAGE_OFFSET_MASK));
    497497            pLock->uPageAndType = (uintptr_t)pPage | PGMPAGEMAPLOCK_TYPE_WRITE;
    498498            pLock->pvMap = pMap;
     
    572572            }
    573573
    574             *ppv = (void *)((uintptr_t)pTlbe->pv | (GCPhys & PAGE_OFFSET_MASK));
     574            *ppv = (void *)((uintptr_t)pTlbe->pv | (uintptr_t)(GCPhys & PAGE_OFFSET_MASK));
    575575            pLock->uPageAndType = (uintptr_t)pPage | PGMPAGEMAPLOCK_TYPE_READ;
    576576            pLock->pvMap = pMap;
     
    33773377            rc2 = pgmPhysPageQueryTlbe(&pVM->pgm.s, GCPhys, &pTlbe);
    33783378            AssertLogRelRCReturn(rc2, rc2);
    3379             *ppv = (void *)((uintptr_t)pTlbe->pv | (GCPhys & PAGE_OFFSET_MASK));
     3379            *ppv = (void *)((uintptr_t)pTlbe->pv | (uintptr_t)(GCPhys & PAGE_OFFSET_MASK));
    33803380            /** @todo mapping/locking hell; this isn't horribly efficient since
    33813381             *        pgmPhysPageLoadIntoTlb will repeat the lookup we've done here. */
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