VirtualBox

Changeset 23207 in vbox for trunk


Ignore:
Timestamp:
Sep 22, 2009 9:44:30 AM (15 years ago)
Author:
vboxsync
Message:

Async: fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMAsyncCompletionFileNormal.cpp

    r22977 r23207  
    376376
    377377                AssertMsg((  (pCurr->enmTransferType == PDMACTASKFILETRANSFER_WRITE)
    378                            || (OffStart + cbToTransfer <= pEndpoint->cbFile)),
     378                           || ((size_t)(OffStart + cbToTransfer) <= pEndpoint->cbFile)),
    379379                          ("Read exceeds file size OffStart=%RTfoff cbToTransfer=%d cbFile=%llu\n",
    380380                          OffStart, cbToTransfer, pEndpoint->cbFile));
     
    424424                {
    425425                    /* Grow the file if needed. */
    426                     if (RT_UNLIKELY((pCurr->Off + pCurr->DataSeg.cbSeg) > pEndpoint->cbFile))
     426                    if (RT_UNLIKELY((size_t)(pCurr->Off + pCurr->DataSeg.cbSeg) > pEndpoint->cbFile))
    427427                    {
    428428                        ASMAtomicWriteU64(&pEndpoint->cbFile, pCurr->Off + pCurr->DataSeg.cbSeg);
     
    738738
    739739                        /* Grow the file if needed. */
    740                         if (RT_UNLIKELY((pTask->Off + pTask->DataSeg.cbSeg) > pEndpoint->cbFile))
     740                        if (RT_UNLIKELY((size_t)(pTask->Off + pTask->DataSeg.cbSeg) > pEndpoint->cbFile))
    741741                        {
    742742                            ASMAtomicWriteU64(&pEndpoint->cbFile, pTask->Off + pTask->DataSeg.cbSeg);
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