summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-12 10:40:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-12 10:40:33 +0000
commit2a75a88c579947277fdf6e2bb6c1b4af672870d1 (patch)
tree107c990981c8a9ac70aa5de86afb8155392224fd
parentf89dbdb89820aa1fe51c0216eb1c15928c9349d6 (diff)
downloadruby-2a75a88c579947277fdf6e2bb6c1b4af672870d1.tar.gz
ruby-2a75a88c579947277fdf6e2bb6c1b4af672870d1.tar.xz
ruby-2a75a88c579947277fdf6e2bb6c1b4af672870d1.zip
* io.c (nogvl_copy_stream_read_write, copy_stream_body): use size_t.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index b51e99a76..a6951e819 100644
--- a/io.c
+++ b/io.c
@@ -7642,7 +7642,7 @@ static void
nogvl_copy_stream_read_write(struct copy_stream_struct *stp)
{
char buf[1024*16];
- int len;
+ size_t len;
ssize_t ss;
int ret;
off_t copy_length;
@@ -7859,7 +7859,7 @@ copy_stream_body(VALUE arg)
stp->dst_fd = dst_fd;
if (stp->src_offset == (off_t)-1 && src_fptr && src_fptr->rbuf_len) {
- long len = src_fptr->rbuf_len;
+ size_t len = src_fptr->rbuf_len;
VALUE str;
if (stp->copy_length != (off_t)-1 && stp->copy_length < len) {
len = (size_t)stp->copy_length;