summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
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 217066b04..3ce2d2a21 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);
}