VirtualBox

Changeset 13817 in vbox


Ignore:
Timestamp:
Nov 4, 2008 10:54:25 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38808
Message:

PGMLdr: Pointers are signed, cast the poitner to uintptr_t instead of the 0x10000 constant to a poitner.

File:
1 edited

Legend:

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

    r13816 r13817  
    643643            else
    644644            {
    645                 if (pszSymbol < (const char *)(void *)0x10000)
     645                if ((uintptr_t)pszSymbol < 0x10000)
    646646                    AssertMsg(rc, ("Couldn't symbol '%u' in module '%s'\n", (unsigned)(uintptr_t)pszSymbol, pszModule));
    647647                else
     
    787787            else
    788788            {
    789                 if (pszSymbol < (const char*)(void*)0x10000)
     789                if ((uintptr_t)pszSymbol < 0x10000)
    790790                    AssertMsg(rc, ("Couldn't symbol '%u' in module '%s'\n", (unsigned)(uintptr_t)pszSymbol, pszModule));
    791791                else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette