VirtualBox

Ignore:
Timestamp:
Aug 1, 2016 12:51:52 PM (8 years ago)
Author:
vboxsync
Message:

GuestHost/OpenGL: warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c

    r62492 r62814  
    5555    CRASSERT(pSSM && pBuffer && cbBuffer>0);
    5656
    57     *pBuffer = crAlloc(cbBuffer);
     57    *pBuffer = crAlloc((unsigned int /* this case is just so stupid */)cbBuffer);
    5858    if (!*pBuffer)
    5959        return VERR_NO_MEMORY;
     
    779779            if (bReallocMem)
    780780            {
    781                 pEval[i].coeff = (GLfloat*) crAlloc(size);
     781                pEval[i].coeff = (GLfloat*) crAlloc((unsigned int /* this case is just so stupid */)size);
    782782                if (!pEval[i].coeff) return VERR_NO_MEMORY;
    783783            }
     
    802802            if (bReallocMem)
    803803            {
    804                 pEval[i].coeff = (GLfloat*) crAlloc(size);
     804                pEval[i].coeff = (GLfloat*) crAlloc((unsigned int /* this case is just so stupid */)size);
    805805                if (!pEval[i].coeff) return VERR_NO_MEMORY;
    806806            }
     
    14551455        }
    14561456    }
    1457 
    1458     return rc;
     1457    /* not reached*/
    14591458}
    14601459
     
    26502649
    26512650                datasize = crStateGetUniformSize(pProgram->pUniforms[k].type)*itemsize;
    2652                 pProgram->pUniforms[k].data = crAlloc(datasize);
     2651                pProgram->pUniforms[k].data = crAlloc((unsigned int /* this case is just so stupid */)datasize);
    26532652                if (!pProgram->pUniforms[k].data) return VERR_NO_MEMORY;
    26542653
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