From 0f9f1921197d79fe5069473b9d85ca4559ef8c42 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sun, 16 Sep 2018 21:58:26 -0600 Subject: [PATCH] axmap: isset_fn() should use 1ULL, not 1UL Signed-off-by: Jens Axboe --- lib/axmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/axmap.c b/lib/axmap.c index ecd46970..27301bd8 100644 --- a/lib/axmap.c +++ b/lib/axmap.c @@ -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) -- 2.25.1