diff options
author | Geoff Lywood | 2010-05-27 01:39:17 +0200 |
---|---|---|
committer | Michael Brown | 2010-05-27 02:18:17 +0200 |
commit | 83efb3d7503d5948fae42d64f95597182045ca04 (patch) | |
tree | b2e8cddc706632ceb63d84064fa968bddacfc016 /src/core/bitmap.c | |
parent | [comboot] Propagate carry flag from COMBOOT API (diff) | |
download | ipxe-83efb3d7503d5948fae42d64f95597182045ca04.tar.gz ipxe-83efb3d7503d5948fae42d64f95597182045ca04.tar.xz ipxe-83efb3d7503d5948fae42d64f95597182045ca04.zip |
[bitmap] Fix bitmaps on 64-bit
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/bitmap.c')
-rw-r--r-- | src/core/bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/bitmap.c b/src/core/bitmap.c index 76fcef67..e9b6d904 100644 --- a/src/core/bitmap.c +++ b/src/core/bitmap.c @@ -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 ); } /** |