summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}