Fix signed int/long truncation on 32-bit architectures
[fio.git] / trim.c
diff --git a/trim.c b/trim.c
index a9b15d686606bee6856b3998e5b7104bc633ac18..de792dc46fd499beed43baffcc9b68184b04cf13 100644 (file)
--- a/trim.c
+++ b/trim.c
@@ -70,7 +70,7 @@ int get_next_trim(struct thread_data *td, struct io_u *io_u)
 int io_u_should_trim(struct thread_data *td, struct io_u *io_u)
 {
        unsigned long long val;
-       long r;
+       unsigned long r;
 
        if (!td->o.trim_percentage)
                return 0;