blktrace: Fix replay_align 32 bit truncation
[fio.git] / blktrace.c
index deb8b2d6d68eb465b1929fd9565cde900d9b408c..dcddd4f21b15e322ef2796d319734c4fb94a5b2a 100644 (file)
@@ -221,7 +221,7 @@ static void ipo_bytes_align(struct thread_options *o, struct io_piece *ipo)
        if (!o->replay_align)
                return;
 
-       ipo->offset &= ~(o->replay_align - 1);
+       ipo->offset &= ~(o->replay_align - (uint64_t)1);
 }