VirtualBox

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


Ignore:
Timestamp:
Apr 14, 2010 9:57:15 PM (15 years ago)
Author:
vboxsync
Message:

DevPCNet.cpp: MSC nit picking.

File:
1 edited

Legend:

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

    r28328 r28333  
    22072207    {
    22082208        Assert(iSeg < pSgBuf->cSegs);
    2209         size_t cbRead = RT_MIN(cbFrame, pSgBuf->aSegs[iSeg].cbSeg);
     2209        uint32_t cbRead = (uint32_t)RT_MIN(cbFrame, pSgBuf->aSegs[iSeg].cbSeg);
    22102210        PDMDevHlpPhysRead(pThis->CTX_SUFF(pDevIns), GCPhysFrame, pSgBuf->aSegs[iSeg].pvSeg, cbRead);
    22112211        cbFrame -= cbRead;
     
    22432243    if (off != offSeg)
    22442244    {
    2245         size_t offIntoSeg = off - offSeg;
    2246         size_t cbRead     = RT_MIN(pSgBuf->aSegs[iSeg].cbSeg - offIntoSeg, cbFrame);
     2245        size_t   offIntoSeg = off - offSeg;
     2246        uint32_t cbRead     = (uint32_t)RT_MIN(pSgBuf->aSegs[iSeg].cbSeg - offIntoSeg, cbFrame);
    22472247        PDMDevHlpPhysRead(pThis->CTX_SUFF(pDevIns), GCPhysFrame,
    22482248                          (uint8_t *)pSgBuf->aSegs[iSeg].pvSeg + offIntoSeg, cbRead);
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