VirtualBox

Changeset 51698 in vbox


Ignore:
Timestamp:
Jun 23, 2014 4:54:17 PM (10 years ago)
Author:
vboxsync
Message:

more signed math

File:
1 edited

Legend:

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

    r51697 r51698  
    438438static uint64_t rtZipPkzipReaderOffLocalHeader(PRTZIPPKZIPREADER pThis)
    439439{
    440     if (pThis->fZip64Ex && pThis->cdh.offLocalFileHeader == -1U)
     440    if (pThis->fZip64Ex && pThis->cdh.offLocalFileHeader == (uint32_t)-1)
    441441        return pThis->cd64ex.offLocalFileHeader;
    442442
     
    450450static uint64_t rtZipPkzipReaderUncompressed(PRTZIPPKZIPREADER pThis)
    451451{
    452     if (pThis->fZip64Ex && pThis->cdh.cbUncompressed == -1U)
     452    if (pThis->fZip64Ex && pThis->cdh.cbUncompressed == (uint32_t)-1)
    453453        return pThis->cd64ex.cbUncompressed;
    454454   
     
    462462static uint64_t rtZipPkzipReaderCompressed(PRTZIPPKZIPREADER pThis)
    463463{
    464     if (pThis->fZip64Ex && pThis->cdh.cbCompressed == -1U)
     464    if (pThis->fZip64Ex && pThis->cdh.cbCompressed == (uint32_t)-1)
    465465        return pThis->cd64ex.cbCompressed;
    466466   
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