summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-15 02:22:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-15 02:22:08 +0000
commitb2c7ef2f76c843d29a3a3804f1fd2f8b557663cb (patch)
treedd1a0d393de3ffc57c947130c776116e99c6cca3 /io.c
parentfc233f516c53af069c90ce3434171fa7dc946e4e (diff)
* io.c (nogvl_copy_stream_sendfile): fix missing condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index f2d17a6338..8fd02a3d16 100644
--- a/io.c
+++ b/io.c
@@ -8317,6 +8317,8 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
# if SIZEOF_OFF_T > SIZEOF_SIZE_T
/* we are limited by the 32-bit ssize_t return value on 32-bit */
ss = (copy_length > (off_t)SSIZE_MAX) ? SSIZE_MAX : (ssize_t)copy_length;
+# else
+ ss = (ssize_t)copy_length;
# endif
if (use_pread) {
ss = simple_sendfile(stp->dst_fd, stp->src_fd, &src_offset, ss);