aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-22 03:42:09 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-22 03:42:09 +0000
commit1dce3b071e35b2772e78c7cc1e16ce1069e3c94b (patch)
tree6a7672d8adda20e209bddad44b8e15feeaaaa56a
parent3337c792e692f1c80ecb5df3eafd9d02f4364445 (diff)
downloadruby-1dce3b071e35b2772e78c7cc1e16ce1069e3c94b.tar.gz
* io.c (rb_io_pid): use PIDT2NUM.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--io.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c6933f2315..4e74e92250 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Aug 22 12:41:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_pid): use PIDT2NUM.
+
Fri Aug 22 11:36:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
* dir.c (dir_enc_str_new): set US-ASCII to the path
diff --git a/io.c b/io.c
index 217066b04a..3ce2d2a21e 100644
--- a/io.c
+++ b/io.c
@@ -1262,7 +1262,7 @@ rb_io_pid(VALUE io)
GetOpenFile(io, fptr);
if (!fptr->pid)
return Qnil;
- return INT2FIX(fptr->pid);
+ return PIDT2NUM(fptr->pid);
}