Changeset 28333 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Apr 14, 2010 9:57:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r28328 r28333 2207 2207 { 2208 2208 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); 2210 2210 PDMDevHlpPhysRead(pThis->CTX_SUFF(pDevIns), GCPhysFrame, pSgBuf->aSegs[iSeg].pvSeg, cbRead); 2211 2211 cbFrame -= cbRead; … … 2243 2243 if (off != offSeg) 2244 2244 { 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); 2247 2247 PDMDevHlpPhysRead(pThis->CTX_SUFF(pDevIns), GCPhysFrame, 2248 2248 (uint8_t *)pSgBuf->aSegs[iSeg].pvSeg + offIntoSeg, cbRead);
Note:
See TracChangeset
for help on using the changeset viewer.