mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 20:40:25 +03:00
[bitmap] Fix bitmaps on 64-bit
Modified-by: Michael Brown <mcb30@ipxe.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
0d108681ac
commit
83efb3d750
@@ -76,7 +76,7 @@ int bitmap_test ( struct bitmap *bitmap, unsigned int bit ) {
|
||||
|
||||
if ( bit >= bitmap->length )
|
||||
return 0;
|
||||
return ( bitmap->blocks[index] & mask );
|
||||
return ( ( bitmap->blocks[index] & mask ) != 0 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user