Fix is_power_of_2() for longs
authorJens Axboe <axboe@fb.com>
Mon, 14 Apr 2014 19:13:21 +0000 (13:13 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 14 Apr 2014 19:13:21 +0000 (13:13 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
fio.h

diff --git a/fio.h b/fio.h
index 25f6052b966a93d7bbef5f87275083b33d79de1f..544916f209bafe8317d54c970da5b3f321c58e8a 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -588,7 +588,7 @@ static inline unsigned int td_min_bs(struct thread_data *td)
        return min(td->o.min_bs[DDIR_TRIM], min_bs);
 }
 
-static inline int is_power_of_2(unsigned int val)
+static inline int is_power_of_2(unsigned long val)
 {
        return (val != 0 && ((val & (val - 1)) == 0));
 }