summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/bitmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ipxe/bitmap.h')
-rw-r--r--src/include/ipxe/bitmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ipxe/bitmap.h b/src/include/ipxe/bitmap.h
index 38d1f221..b18584c1 100644
--- a/src/include/ipxe/bitmap.h
+++ b/src/include/ipxe/bitmap.h
@@ -33,7 +33,7 @@ typedef unsigned long bitmap_block_t;
* @v bit Bit index
* @ret mask Block mask
*/
-#define BITMAP_MASK( bit ) ( 1 << ( (bit) % BITMAP_BLKSIZE ) )
+#define BITMAP_MASK( bit ) ( 1UL << ( (bit) % BITMAP_BLKSIZE ) )
/** A bitmap */
struct bitmap {