VirtualBox

Changeset 66838 in vbox


Ignore:
Timestamp:
May 8, 2017 5:44:37 PM (8 years ago)
Author:
vboxsync
Message:

sharedogl/server_main: integers must first be cast thru uintptr_t before casting to pointers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c

    r64670 r66838  
    19591959                rc = crServerLsrDataGetMem(pReader, &LaBuf, sizeof (LaBuf));
    19601960                AssertLogRelRCReturn(rc, rc);
    1961                 if (LaBuf.apv[0] != NULL && LaBuf.apv[0] != ((void*)1))
     1961                if (LaBuf.apv[0] != NULL && LaBuf.apv[0] != ((void *)(uintptr_t)1))
    19621962                    break;
    19631963
     
    32413241    {
    32423242        /* allocate client id */
    3243         u32ClientId =  CrHTablePut(&cr_server.clientTable, (void*)1);
     3243        u32ClientId =  CrHTablePut(&cr_server.clientTable, (void *)(uintptr_t)1);
    32443244        if (u32ClientId == CRHTABLE_HANDLE_INVALID)
    32453245        {
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