diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-27 07:39:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-27 07:39:29 +0000 |
commit | dcc8d4f3d9aa826611e4be9ab5d74c29e8ea04f0 (patch) | |
tree | 01666e2c997f9125349aabe8f121aeb824973b2c | |
parent | 059b67241667e0232da09ffb0d13fbe44a786ab2 (diff) | |
download | ruby-dcc8d4f3d9aa826611e4be9ab5d74c29e8ea04f0.tar.gz |
io.c: use io_close to close ARGF
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7986,7 +7986,7 @@ argf_close(VALUE argf) if (RB_TYPE_P(file, T_FILE)) { rb_io_set_write_io(file, Qnil); } - rb_funcall3(file, rb_intern("close"), 0, 0); + io_close(file); ARGF.init_p = -1; } |