VirtualBox

Changeset 85248 in vbox for trunk/src


Ignore:
Timestamp:
Jul 11, 2020 11:09:44 PM (4 years ago)
Author:
vboxsync
Message:

Main/HostNetworkInterfaceImpl.cpp: Signed/unsigned conversion issues. bugref:9790

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp

    r83794 r85248  
    258258            m.realIPV6Address = m.IPV6Address = Utf8Str::Empty;
    259259        RTNetMaskToPrefixIPv6(&info.IPv6NetMask, &iPrefixIPv6);
    260         m.realIPV6PrefixLength = m.IPV6NetworkMaskPrefixLength = iPrefixIPv6;
     260        m.realIPV6PrefixLength = m.IPV6NetworkMaskPrefixLength = (ULONG)iPrefixIPv6;
    261261        m.hardwareAddress = Utf8StrFmt("%RTmac", &info.MACAddress);
    262262        AssertCompile((unsigned)NETIF_T_UNKNOWN == (unsigned)HostNetworkInterfaceMediumType_Unknown);
     
    318318        m.realIPV6Address = m.IPV6Address = Utf8Str::Empty;
    319319    RTNetMaskToPrefixIPv6(&pIf->IPv6NetMask, &iPrefixIPv6);
    320     m.realIPV6PrefixLength = m.IPV6NetworkMaskPrefixLength = iPrefixIPv6;
     320    m.realIPV6PrefixLength = m.IPV6NetworkMaskPrefixLength = (ULONG)iPrefixIPv6;
    321321    m.dhcpEnabled = pIf->fDhcpEnabled;
    322322    m.hardwareAddress = Utf8StrFmt("%RTmac", &pIf->MACAddress);
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