Skip to content

Commit

Permalink
axmap: isset_fn() should use 1ULL, not 1UL
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Sep 17, 2018
1 parent 3900744 commit 0f9f192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/axmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0f9f192

Please sign in to comment.