USB: Cleanup hardcoded bitmap size.
This commit is contained in:
parent
2747989d9e
commit
b0e1d28d2b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user