- Timestamp:
- Sep 22, 2009 9:44:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMAsyncCompletionFileNormal.cpp
r22977 r23207 376 376 377 377 AssertMsg(( (pCurr->enmTransferType == PDMACTASKFILETRANSFER_WRITE) 378 || ( OffStart + cbToTransfer<= pEndpoint->cbFile)),378 || ((size_t)(OffStart + cbToTransfer) <= pEndpoint->cbFile)), 379 379 ("Read exceeds file size OffStart=%RTfoff cbToTransfer=%d cbFile=%llu\n", 380 380 OffStart, cbToTransfer, pEndpoint->cbFile)); … … 424 424 { 425 425 /* 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)) 427 427 { 428 428 ASMAtomicWriteU64(&pEndpoint->cbFile, pCurr->Off + pCurr->DataSeg.cbSeg); … … 738 738 739 739 /* 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)) 741 741 { 742 742 ASMAtomicWriteU64(&pEndpoint->cbFile, pTask->Off + pTask->DataSeg.cbSeg);
Note:
See TracChangeset
for help on using the changeset viewer.