From: Jens Axboe Date: Mon, 17 Sep 2018 03:58:26 +0000 (-0600) Subject: axmap: isset_fn() should use 1ULL, not 1UL X-Git-Tag: fio-3.11~38 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=0f9f1921197d79fe5069473b9d85ca4559ef8c42 axmap: isset_fn() should use 1ULL, not 1UL Signed-off-by: Jens Axboe --- 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)