Fix 32-bit warning for io_uring_prep_splice()
../src/include/liburing.h: In function 'io_uring_prep_splice':
../src/include/liburing.h:200:50: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
200 |  io_uring_prep_rw(IORING_OP_SPLICE, sqe, fd_out, (void *)off_in,
Do the usual 32-bit cast trick.
Fixes: ("splice: add splice(2) helpers")
@@ -197,7 +197,8 @@ static inline void io_uring_prep_splice(struct io_uring_sqe *sqe,
unsigned int nbytes,
unsigned int splice_flags)
{
- io_uring_prep_rw(IORING_OP_SPLICE, sqe, fd_out, (void *)off_in,
+ io_uring_prep_rw(IORING_OP_SPLICE, sqe, fd_out,
+ (void *) (uintptr_t) off_in,
nbytes, off_out);
sqe->splice_fd_in = fd_in;
sqe->splice_flags = splice_flags;
