VirtualBox

Changeset 85249 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jul 11, 2020 11:10:15 PM (5 years ago)
Author:
vboxsync
Message:

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

File:
1 edited

Legend:

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

    r82968 r85249  
    437437        return E_INVALIDARG;
    438438
    439     if (((net.u + aOffset) & mask.u) != net.u)
     439    if (((net.u + (uint32_t)aOffset) & mask.u) != net.u)
    440440        return E_INVALIDARG;
    441441
     
    458458                return E_INVALIDARG; /* this offset is already registered. */
    459459
    460             (*it).u32Offset = aOffset;
     460            (*it).u32Offset = (uint32_t)aOffset;
    461461        }
    462462
     
    487487    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    488488
    489     *aLoopbackIp6 = m->s.u32HostLoopback6Offset;
     489    *aLoopbackIp6 = (LONG)m->s.u32HostLoopback6Offset;
    490490    return S_OK;
    491491}
     
    503503            return S_OK;
    504504
    505         m->s.u32HostLoopback6Offset = aLoopbackIp6;
     505        m->s.u32HostLoopback6Offset = (LONG)aLoopbackIp6;
    506506    }
    507507
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