From b8cc476ce9a3e931fb474ee83e8ae147bcd9c86e Mon Sep 17 00:00:00 2001 From: kazu Date: Mon, 22 Jan 2018 13:09:37 +0000 Subject: use predefined IDs git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index ab2902c797..26cc122d5b 100644 --- a/dir.c +++ b/dir.c @@ -14,6 +14,7 @@ #include "ruby/encoding.h" #include "ruby/thread.h" #include "internal.h" +#include "id.h" #include "encindex.h" #include @@ -662,7 +663,7 @@ dir_inspect(VALUE dir) rb_str_cat2(str, ">"); return str; } - return rb_funcallv(dir, rb_intern("to_s"), 0, 0); + return rb_funcallv(dir, idTo_s, 0, 0); } /* Workaround for Solaris 10 that does not have dirfd. -- cgit v1.2.3