VirtualBox

Changeset 18456 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 28, 2009 4:47:55 AM (16 years ago)
Author:
vboxsync
Message:

tstSSM: size_t warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstSSM.cpp

    r16162 r18456  
    259259     * Put the size.
    260260     */
    261     size_t cb = sizeof(gabBigMem);
     261    uint32_t cb = sizeof(gabBigMem);
    262262    int rc = SSMR3PutU32(pSSM, cb);
    263263    if (RT_FAILURE(rc))
     
    271271     */
    272272    uint8_t *pbMem = &gabBigMem[0];
    273     size_t cbChunk = cb / 47;
     273    uint32_t cbChunk = cb / 47;
    274274    rc = SSMR3PutMem(pSSM, pbMem, cbChunk);
    275275    if (RT_FAILURE(rc))
     
    336336    uint8_t    *pbMem = &gabBigMem[0];
    337337    char        achTmp[16383];
    338     size_t      cbChunk = sizeof(achTmp);
     338    uint32_t    cbChunk = sizeof(achTmp);
    339339    while (cb > 0)
    340340    {
     
    379379     * Put the size.
    380380     */
    381     size_t cb = 512*_1M;
     381    uint32_t cb = 512*_1M;
    382382    int rc = SSMR3PutU32(pSSM, cb);
    383383    if (RT_FAILURE(rc))
     
    481481     * Put the size.
    482482     */
    483     size_t cb = 512*_1M;
     483    uint32_t cb = 512*_1M;
    484484    int rc = SSMR3PutU32(pSSM, cb);
    485485    if (RT_FAILURE(rc))
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