VirtualBox

Changeset 84388 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
May 20, 2020 6:01:50 AM (5 years ago)
Author:
vboxsync
Message:

Fix more windows compiler warnings

File:
1 edited

Legend:

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

    r84386 r84388  
    15171517    RTGCPHYS gcPhysPktHdrNumBuffers = 0;
    15181518    uint16_t cDescs;
    1519     uint32_t uOffset;
     1519    uint64_t uOffset;
    15201520    for (cDescs = uOffset = 0; uOffset < cb; )
    15211521    {
     
    18641864    if (pThisCC->pDrv && fPromiscChanged)
    18651865    {
    1866         uint8_t fPromiscuous = pThis->fPromiscuous | pThis->fAllMulticast;
    1867         pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, fPromiscuous);
     1866        bool fPromiscuous = pThis->fPromiscuous | pThis->fAllMulticast;
     1867        pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, (uint8_t)fPromiscuous);
    18681868    }
    18691869
     
    19521952
    19531953    uint16_t uVlanId;
    1954     uint16_t cbRemaining = pDescChain->cbPhysSend - sizeof(*pCtrlPktHdr);
     1954    size_t cbRemaining = pDescChain->cbPhysSend - sizeof(*pCtrlPktHdr);
    19551955    AssertMsgReturn(cbRemaining > sizeof(uVlanId),
    19561956        ("DESC chain too small for VIRTIO_NET_CTRL_VLAN cmd processing"), VIRTIONET_ERROR);
     
    22392239
    22402240        VIRTIONET_PKT_HDR_T PktHdr;
    2241         uint32_t uSize = 0;
     2241        size_t uSize = 0;
    22422242
    22432243        Assert(paSegsFromGuest[0].cbSeg >= sizeof(PktHdr));
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