VirtualBox

Changeset 52544 in vbox


Ignore:
Timestamp:
Sep 1, 2014 2:30:21 AM (10 years ago)
Author:
vboxsync
Message:

IntNet: intnetR0TrunkSharedMacEditIPv6FromIntNet: Use uint32_t instead
of size_t for variables we use in expressions with "uint32_t cb"
argument to pacify very picky windows compiler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp

    r52543 r52544  
    28352835        return;
    28362836
    2837     size_t hdrlen = 0;
     2837    uint32_t hdrlen = 0;
    28382838    uint8_t llaopt = RTNETIPV6_ICMP_ND_SLLA_OPT;
    28392839
     
    28762876    {
    28772877        uint8_t opt = ((uint8_t *)pOpt)[0];
    2878         size_t optlen = (size_t)((uint8_t *)pOpt)[1] * 8;
     2878        uint32_t optlen = (uint32_t)((uint8_t *)pOpt)[1] * 8;
    28792879        if (RT_UNLIKELY(cb < optlen))
    28802880            return;
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