VirtualBox

Changeset 14055 in vbox


Ignore:
Timestamp:
Nov 10, 2008 10:57:43 PM (16 years ago)
Author:
vboxsync
Message:

zip.cpp: shut up 64-bit MSC warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/zip.cpp

    r8245 r14055  
    873873         * Flush output buffer?
    874874         */
    875         unsigned cbFree = sizeof(pZip->abBuffer) - (pZip->u.LZF.pbOutput - &pZip->abBuffer[0]);
     875        unsigned cbFree = (unsigned)(sizeof(pZip->abBuffer) - (pZip->u.LZF.pbOutput - &pZip->abBuffer[0]));
    876876        if (    fForceFlush
    877877            ||  cbFree < RTZIPLZF_MAX_DATA_SIZE + sizeof(RTZIPLZFHDR))
     
    903903         * output space.
    904904         */
    905         cbFree  = RT_MIN(cbFree, RTZIPLZF_MAX_DATA_SIZE);
    906         unsigned cbInput = RT_MIN(RTZIPLZF_MAX_UNCOMPRESSED_DATA_SIZE, cbBuf);
     905        cbFree = RT_MIN(cbFree, RTZIPLZF_MAX_DATA_SIZE);
     906        unsigned cbInput = (unsigned)RT_MIN(RTZIPLZF_MAX_UNCOMPRESSED_DATA_SIZE, cbBuf);
    907907        unsigned cbOutput = lzf_compress(pbBuf, cbInput, pZip->u.LZF.pbOutput, cbFree);
    908908        if (!cbOutput)
     
    10811081        if (pZip->u.LZF.cbSpill > 0)
    10821082        {
    1083             size_t cb = RT_MIN(pZip->u.LZF.cbSpill, cbBuf);
     1083            unsigned cb = (unsigned)RT_MIN(pZip->u.LZF.cbSpill, cbBuf);
    10841084            memcpy(pvBuf, pZip->u.LZF.pbSpill, cb);
    10851085            pZip->u.LZF.pbSpill += cb;
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