summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/io.c b/io.c
index 7a89654ba2..c678cc3b21 100644
--- a/io.c
+++ b/io.c
@@ -16,6 +16,7 @@
#include "ruby/thread.h"
#include "dln.h"
#include "internal.h"
+#include "id.h"
#include <ctype.h>
#include <errno.h>
@@ -7579,7 +7580,7 @@ argf_getline(int argc, VALUE *argv, VALUE argf)
retry:
if (!next_argv()) return Qnil;
if (ARGF_GENERIC_INPUT_P()) {
- line = rb_funcall3(ARGF.current_file, rb_intern("gets"), argc, argv);
+ line = rb_funcall3(ARGF.current_file, idGets, argc, argv);
}
else {
if (argc == 0 && rb_rs == rb_default_rs) {
@@ -7657,7 +7658,7 @@ rb_f_gets(int argc, VALUE *argv, VALUE recv)
if (recv == argf) {
return argf_gets(argc, argv, argf);
}
- return rb_funcall2(argf, rb_intern("gets"), argc, argv);
+ return rb_funcall2(argf, idGets, argc, argv);
}
/*