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:
parent
3337c792e6
commit
1dce3b071e
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
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
|
* dir.c (dir_enc_str_new): set US-ASCII to the path
|
||||||
|
|
2
io.c
2
io.c
|
@ -1262,7 +1262,7 @@ rb_io_pid(VALUE io)
|
||||||
GetOpenFile(io, fptr);
|
GetOpenFile(io, fptr);
|
||||||
if (!fptr->pid)
|
if (!fptr->pid)
|
||||||
return Qnil;
|
return Qnil;
|
||||||
return INT2FIX(fptr->pid);
|
return PIDT2NUM(fptr->pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue