filesetup: use 64-bit type for file size generation
[fio.git] / filesetup.c
index 6108ca302e5b33333d5bbb8d52636839361a6428..c0fa3cdae882b0a738dce77c07a585616c31e937 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);