engines/net: get rid of conversion warning on clang/OSX
authorJens Axboe <axboe@fb.com>
Wed, 15 Oct 2014 14:51:43 +0000 (08:51 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 15 Oct 2014 14:51:43 +0000 (08:51 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/net.c

index aa7de9678ad02d1c30bcea5f4aa52ace0e6519c0..7a0fe696c1b81c7ff0dba9539387a0f16c5d7bdb 100644 (file)
@@ -485,7 +485,7 @@ static void store_udp_seq(struct netio_data *nd, struct io_u *io_u)
        struct udp_seq *us;
 
        us = io_u->xfer_buf + io_u->xfer_buflen - sizeof(*us);
-       us->magic = cpu_to_le64(FIO_UDP_SEQ_MAGIC);
+       us->magic = cpu_to_le64((uint64_t) FIO_UDP_SEQ_MAGIC);
        us->bs = cpu_to_le64((uint64_t) io_u->xfer_buflen);
        us->seq = cpu_to_le64(nd->udp_send_seq++);
 }