ruby-changes:53880
From: normal <ko1@a...>
Date: Fri, 30 Nov 2018 08:30:33 +0900 (JST)
Subject: [ruby-changes:53880] normal:r66099 (trunk): io.c: fix clang -Werror, -Wshorten-64-to-32 on Linux sendfile
normal 2018-11-30 08:30:28 +0900 (Fri, 30 Nov 2018) New Revision: 66099 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66099 Log: io.c: fix clang -Werror,-Wshorten-64-to-32 on Linux sendfile Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 66098) +++ io.c (revision 66099) @@ -11114,7 +11114,7 @@ nogvl_copy_stream_sendfile(struct copy_s https://github.com/ruby/ruby/blob/trunk/io.c#L11114 } stp->syserr = "sendfile"; stp->error_no = errno; - return ss; + return (int)ss; } return 1; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/