commit | 66eeb2963730871049b7d938c685188ef63d865a | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Wed Nov 01 08:35:44 2006 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed Nov 01 08:35:44 2006 +0100 |
tree | 3fdbf8d0f7fd0722ea709c4f55e28c14574ed88c | |
parent | 6b9cea23c22c218625b68eca63da38089b299846 [diff] [blame] |
[PATCH] Signedness warning Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.c b/fio.c index 52caa4e..76710e1 100644 --- a/fio.c +++ b/fio.c
@@ -482,9 +482,9 @@ /* * "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;