- Timestamp:
- Nov 11, 2021 12:41:46 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
r92342 r92343 2028 2028 { 2029 2029 idChunk = ASMBitNextClear(&pGMM->bmChunkId[0], GMM_CHUNKID_LAST + 1, idChunk); 2030 if (idChunk > NIL_GMM_CHUNKID) 2030 if ( idChunk > NIL_GMM_CHUNKID 2031 && (uint32_t)idChunk <= GMM_CHUNKID_LAST) 2031 2032 { 2032 2033 AssertMsgReturnStmt(!ASMAtomicBitTestAndSet(&pGMM->bmChunkId[0], idChunk), ("%#x\n", idChunk), … … 2045 2046 */ 2046 2047 idChunk = ASMBitFirstClear(&pGMM->bmChunkId[0], GMM_CHUNKID_LAST + 1); 2047 AssertMsgReturnStmt(idChunk > NIL_GMM_CHUNKID && idChunk <= GMM_CHUNKID_LAST, ("%#x\n", idChunk),2048 AssertMsgReturnStmt(idChunk > NIL_GMM_CHUNKID && (uint32_t)idChunk <= GMM_CHUNKID_LAST, ("%#x\n", idChunk), 2048 2049 RTSpinlockRelease(pGMM->hSpinLockChunkId), NIL_GVM_HANDLE); 2049 2050 AssertMsgReturnStmt(!ASMAtomicBitTestAndSet(&pGMM->bmChunkId[0], idChunk), ("%#x\n", idChunk),
Note:
See TracChangeset
for help on using the changeset viewer.