From 844ed3d36faf14813a2e6f2476920f63bcb3bc89 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 26 Feb 2011 14:45:04 -0800 Subject: [PATCH] avoid signed vs unsigned comparison Caught when compiling with the CFLAGS of Ruby 1.9.3dev --- ext/io_splice/io_splice_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/io_splice/io_splice_ext.c b/ext/io_splice/io_splice_ext.c index 69a5791..268179f 100644 --- a/ext/io_splice/io_splice_ext.c +++ b/ext/io_splice/io_splice_ext.c @@ -299,7 +299,7 @@ do { \ static void advance_vmsplice_args(struct vmsplice_args *a, long n) { struct iovec *new_iov = a->iov; - int i; + unsigned long i; /* skip over iovecs we've already written completely */ for (i = 0; i < a->nr_segs; i++, new_iov++) { -- 2.11.4.GIT