1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (rb_io_pid): use PIDT2NUM.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-08-22 03:42:09 +00:00
parent 3337c792e6
commit 1dce3b071e
2 changed files with 5 additions and 1 deletions

View file

@ -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

2
io.c
View file

@ -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);
}