From 66eeb2963730871049b7d938c685188ef63d865a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 1 Nov 2006 08:35:44 +0100 Subject: [PATCH] [PATCH] Signedness warning Signed-off-by: Jens Axboe --- fio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fio.c b/fio.c index 52caa4e9..76710e19 100644 --- a/fio.c +++ b/fio.c @@ -482,9 +482,9 @@ static void cleanup_io_u(struct thread_data *td) /* * "randomly" fill the buffer contents */ -static void fill_rand_buf(struct io_u *io_u, unsigned int max_bs) +static void fill_rand_buf(struct io_u *io_u, int max_bs) { - unsigned int *ptr = io_u->buf; + int *ptr = io_u->buf; while ((void *) ptr - io_u->buf < max_bs) { *ptr = rand() * 0x9e370001; -- 2.25.1