axmap: isset_fn() should use 1ULL, not 1UL
authorJens Axboe <axboe@kernel.dk>
Mon, 17 Sep 2018 03:58:26 +0000 (21:58 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Sep 2018 03:58:26 +0000 (21:58 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/axmap.c

index ecd4697..27301bd 100644 (file)
@@ -325,7 +325,7 @@ unsigned int axmap_set_nr(struct axmap *axmap, uint64_t bit_nr,
 static bool axmap_isset_fn(struct axmap_level *al, uint64_t offset,
                           unsigned int bit, void *unused)
 {
-       return (al->map[offset] & (1UL << bit)) != 0;
+       return (al->map[offset] & (1ULL << bit)) != 0;
 }
 
 bool axmap_isset(struct axmap *axmap, uint64_t bit_nr)