[前][次][番号順一覧][スレッド一覧]

ruby-changes:18196

From: nobu <ko1@a...>
Date: Wed, 15 Dec 2010 11:28:10 +0900 (JST)
Subject: [ruby-changes:18196] Ruby:r30217 (trunk): * io.c (nogvl_copy_stream_sendfile): fix missing condition.

nobu	2010-12-15 11:22:08 +0900 (Wed, 15 Dec 2010)

  New Revision: 30217

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30217

  Log:
    * io.c (nogvl_copy_stream_sendfile): fix missing condition.

  Modified files:
    trunk/io.c

Index: io.c
===================================================================
--- io.c	(revision 30216)
+++ io.c	(revision 30217)
@@ -8317,6 +8317,8 @@
 # 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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]