VirtualBox

Changeset 73925 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Aug 28, 2018 9:33:32 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124650
Message:

VUSB: warning fix (comparison between signed and unsigned integer expressions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/VUSBUrbPool.cpp

    r73097 r73925  
    130130    size_t cbMem = cbData + sizeof(VUSBURBVUSBINT) + cbHci + cTds * cbHciTd;
    131131
    132     AssertReturn(enmType < RT_ELEMENTS(pUrbPool->aLstFreeUrbs), NULL);
     132    AssertReturn((size_t)enmType < RT_ELEMENTS(pUrbPool->aLstFreeUrbs), NULL);
    133133
    134134    RTCritSectEnter(&pUrbPool->CritSectPool);
     
    234234        /* Put it into the list of free URBs. */
    235235        VUSBXFERTYPE enmType = pUrb->enmType;
    236         AssertReturnVoid(enmType < RT_ELEMENTS(pUrbPool->aLstFreeUrbs));
     236        AssertReturnVoid((size_t)enmType < RT_ELEMENTS(pUrbPool->aLstFreeUrbs));
    237237        RTCritSectEnter(&pUrbPool->CritSectPool);
    238238        pUrb->enmState = VUSBURBSTATE_FREE;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette