diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-09 13:18:42 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-09 13:18:42 -0700 |
commit | 184f664d0773ea41c56b9db8dcf69878b9713855 (patch) | |
tree | c5125b732537a11cc636346ebcf56982dfbda425 | |
parent | af9da960a4b2683d27c946c308ae105958abdd26 (diff) | |
download | ruby_io_splice-184f664d0773ea41c56b9db8dcf69878b9713855.tar.gz |
No chance in hell a file descriptor can be a Bignum...
-rw-r--r-- | ext/io_splice/io_splice_ext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io_splice/io_splice_ext.c b/ext/io_splice/io_splice_ext.c index eab1333..4396fb0 100644 --- a/ext/io_splice/io_splice_ext.c +++ b/ext/io_splice/io_splice_ext.c @@ -43,7 +43,7 @@ static int my_fileno(VALUE io) for (;;) { switch (TYPE(io)) { - case T_FIXNUM: return NUM2INT(io); + case T_FIXNUM: return FIX2INT(io); case T_FILE: { GetOpenFile(io, fptr); return FPTR_TO_FD(fptr); |