VirtualBox

Ignore:
Timestamp:
Aug 9, 2008 7:17:34 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34408
Message:

stupid warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/checksum/ipv4.cpp

    r11060 r11313  
    106106    if (RT_UNLIKELY(pIpHdr->ip_hl * 4 < RTNETIPV4_MIN_LEN))
    107107        return false;
    108     if (RT_UNLIKELY(pIpHdr->ip_hl * 4 > cbHdrMax))
     108    if (RT_UNLIKELY((size_t)pIpHdr->ip_hl * 4 > cbHdrMax))
    109109    {
    110110        Assert(pIpHdr->ip_hl * 4 > cbPktMax); /* You'll hit this if you mapped/copy too little of the header! */
     
    412412    if (RT_UNLIKELY(cb > cbPktMax))
    413413        return false;
    414     if (RT_UNLIKELY(cb > RT_BE2H_U16(pIpHdr->ip_len) - pIpHdr->ip_hl * 4))
     414    if (RT_UNLIKELY(cb > (size_t)(RT_BE2H_U16(pIpHdr->ip_len) - pIpHdr->ip_hl * 4)))
    415415        return false;
    416416    return true;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette