summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-01 05:56:51 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-01 05:56:51 +0000
commitf9269809027806f3b41ad73207721bd8adb35650 (patch)
tree6f4a02fbef7b416c848dcc9cfdb287cb034e5d9f /io.c
parentcd3445ca6e9dde2603d5a6787274b5baac487bdb (diff)
* io.c (nogvl_io_cntl): rb_cloexec_fcntl_dupfd's 2nd argument is int.
* process.c (move_fds_to_avoid_crash): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 7ea40b320a..50ee6871ca 100644
--- a/io.c
+++ b/io.c
@@ -7842,7 +7842,7 @@ static VALUE nogvl_io_cntl(void *ptr)
else
#if defined(F_DUPFD)
if (arg->cmd == F_DUPFD)
- return (VALUE)rb_cloexec_fcntl_dupfd(arg->fd, arg->narg);
+ return (VALUE)rb_cloexec_fcntl_dupfd(arg->fd, (int)arg->narg);
else
#endif
return (VALUE)fcntl(arg->fd, arg->cmd, arg->narg);