USB: Cleanup hardcoded bitmap size.

This commit is contained in:
Michael Lotz 2014-08-31 11:00:21 +02:00
parent 2747989d9e
commit b0e1d28d2b

View File

@ -141,7 +141,7 @@ PhysicalMemoryAllocator::Allocate(size_t size, void **logicalAddress,
return B_NO_MEMORY;
}
for (int32 i = 0; i < 64; i++) {
for (size_t i = 0; i < sizeof(fDebugUseMap) * 8; i++) {
uint64 mask = 1LL << i;
if ((fDebugUseMap & mask) == 0) {
fDebugUseMap |= mask;