VirtualBox

Changeset 30275 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Jun 17, 2010 8:50:43 AM (15 years ago)
Author:
vboxsync
Message:

Runtime/socket: fix size_t/int problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/socket.cpp

    r30273 r30275  
    631631        for (unsigned i = 0; i < pSgBuf->cSeg; i++)
    632632        {
    633             cbBuf += pSgBuf->pcaSeg[i].cbSeg;
     633            cbBuf += (int)pSgBuf->pcaSeg[i].cbSeg;
    634634            AssertBreakStmt(cbBuf, rc = VERR_BUFFER_OVERFLOW);
    635635        }
     
    641641        {
    642642            memcpy(p, pSgBuf->pcaSeg[i].pvSeg, pSgBuf->pcaSeg[i].cbSeg);
    643             p += pSgBuf->pcaSeg[i].cbSeg;
     643            p += (int)pSgBuf->pcaSeg[i].cbSeg;
    644644        }
    645645
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