Changeset 14055 in vbox
- Timestamp:
- Nov 10, 2008 10:57:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/zip.cpp
r8245 r14055 873 873 * Flush output buffer? 874 874 */ 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])); 876 876 if ( fForceFlush 877 877 || cbFree < RTZIPLZF_MAX_DATA_SIZE + sizeof(RTZIPLZFHDR)) … … 903 903 * output space. 904 904 */ 905 cbFree 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); 907 907 unsigned cbOutput = lzf_compress(pbBuf, cbInput, pZip->u.LZF.pbOutput, cbFree); 908 908 if (!cbOutput) … … 1081 1081 if (pZip->u.LZF.cbSpill > 0) 1082 1082 { 1083 size_t cb =RT_MIN(pZip->u.LZF.cbSpill, cbBuf);1083 unsigned cb = (unsigned)RT_MIN(pZip->u.LZF.cbSpill, cbBuf); 1084 1084 memcpy(pvBuf, pZip->u.LZF.pbSpill, cb); 1085 1085 pZip->u.LZF.pbSpill += cb;
Note:
See TracChangeset
for help on using the changeset viewer.