VirtualBox

Ignore:
Timestamp:
Nov 30, 2010 1:14:14 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68295
Message:

IPRT: Visual C++ warnings.

Location:
trunk/src/VBox/Runtime/common/vfs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/vfs/vfsbase.cpp

    r34441 r34507  
    21242124
    21252125
    2126 RTDECL(RTFOFF) RTVfsIoStrmPoll(RTVFSIOSTREAM hVfsIos, uint32_t fEvents, RTMSINTERVAL cMillies, bool fIntr,
    2127                                uint32_t *pfRetEvents)
     2126RTDECL(int) RTVfsIoStrmPoll(RTVFSIOSTREAM hVfsIos, uint32_t fEvents, RTMSINTERVAL cMillies, bool fIntr,
     2127                            uint32_t *pfRetEvents)
    21282128{
    21292129    RTVFSIOSTREAMINTERNAL *pThis = hVfsIos;
     
    21852185            while (cb > 0)
    21862186            {
    2187                 size_t cbToRead = RT_MIN(cb, _64K);
     2187                size_t cbToRead = (size_t)RT_MIN(cb, _64K);
    21882188                RTVfsLockAcquireWrite(pThis->Base.hLock);
    21892189                rc = RTVfsIoStrmRead(hVfsIos, pvBuf, cbToRead, true /*fBlocking*/, NULL);
     
    22242224            while (cb > 0)
    22252225            {
    2226                 size_t cbToWrite = RT_MIN(cb, _64K);
     2226                size_t cbToWrite = (size_t)RT_MIN(cb, _64K);
    22272227                RTVfsLockAcquireWrite(pThis->Base.hLock);
    22282228                rc = RTVfsIoStrmWrite(hVfsIos, pvBuf, cbToWrite, true /*fBlocking*/, NULL);
  • trunk/src/VBox/Runtime/common/vfs/vfsmemory.cpp

    r34441 r34507  
    326326                cbThisRead = cbLeftToRead;
    327327            else
    328                 cbThisRead = pNext->off - offUnsigned;
     328                cbThisRead = (size_t)(pNext->off - offUnsigned);
    329329
    330330            RT_BZERO(pbDst, cbThisRead);
     
    402402        uint64_t cbMaxExtent = pNext->off - offExtent;
    403403        if (cbMaxExtent < cbExtent)
    404             cbExtent = cbMaxExtent;
     404            cbExtent = (uint32_t)cbMaxExtent;
    405405    }
    406406
     
    490490         * Copy the source data into the current extent.
    491491         */
    492         uint32_t const  offDst      = offUnsigned - pExtent->off;
     492        uint32_t const  offDst      = (uint32_t)(offUnsigned - pExtent->off);
    493493        uint32_t        cbThisWrite = pExtent->cb - offDst;
    494494        if (cbThisWrite > cbLeftToWrite)
     
    683683{
    684684    PRTVFSMEMFILE pThis = (PRTVFSMEMFILE)pvThis;
    685     return pThis->Base.ObjInfo.cbObject;
     685    *pcbFile = pThis->Base.ObjInfo.cbObject;
     686    return VINF_SUCCESS;
    686687}
    687688
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