filesetup: use 64-bit type for file size generation
authorJens Axboe <axboe@kernel.dk>
Mon, 17 Sep 2018 19:46:51 +0000 (13:46 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Sep 2018 19:46:51 +0000 (13:46 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
filesetup.c

index 6108ca3..c0fa3cd 100644 (file)
@@ -331,7 +331,7 @@ unsigned long long get_rand_file_size(struct thread_data *td)
 {
        unsigned long long ret, sized;
        uint64_t frand_max;
-       unsigned long r;
+       uint64_t r;
 
        frand_max = rand_max(&td->file_size_state);
        r = __rand(&td->file_size_state);