Changeset 23212 in vbox
- Timestamp:
- Sep 22, 2009 12:08:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMAsyncCompletionFileNormal.cpp
r23207 r23212 375 375 PDMACTASKFILETRANSFER enmTransferType = pCurr->enmTransferType; 376 376 377 AssertMsg( ( (pCurr->enmTransferType == PDMACTASKFILETRANSFER_WRITE)378 || ((size_t)(OffStart + cbToTransfer) <= pEndpoint->cbFile)),377 AssertMsg( pCurr->enmTransferType == PDMACTASKFILETRANSFER_WRITE 378 || (uint64_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(( size_t)(pCurr->Off + pCurr->DataSeg.cbSeg) > pEndpoint->cbFile))426 if (RT_UNLIKELY((uint64_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(( size_t)(pTask->Off + pTask->DataSeg.cbSeg) > pEndpoint->cbFile))740 if (RT_UNLIKELY((uint64_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.