summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-20 04:31:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-20 04:31:50 +0000
commit7caab4d2c3ff727199123f71c56ccaff812a5f8c (patch)
tree5551adfa328fc1725ad1985556eac96a9603c8b4 /io.c
parent7f3f4fae83eba4a6bd3333626918e7b97ee59647 (diff)
downloadruby-7caab4d2c3ff727199123f71c56ccaff812a5f8c.tar.gz
ruby-7caab4d2c3ff727199123f71c56ccaff812a5f8c.tar.xz
ruby-7caab4d2c3ff727199123f71c56ccaff812a5f8c.zip
* hash.c (rb_any_cmp): should handle Qundef in keys.
* eval.c (remove_method): should not remove a empty method to implement "undef". * eval.c (rb_eval): should allow singleton class def for true/false/nil. * parse.y (str_extend): backslash escape was done wrong. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 2404b1faf..78c2ef975 100644
--- a/io.c
+++ b/io.c
@@ -1165,7 +1165,7 @@ rb_io_close(io)
int fd;
fptr = RFILE(io)->fptr;
- if (!fptr) return;
+ if (!fptr) return Qnil;
if (!fptr->f && !fptr->f2) return;
fd = fileno(fptr->f);