diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-22 13:09:37 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-22 13:09:37 +0000 |
commit | 16ae65fe2b9a778be66189bb03c66d10b9e1afce (patch) | |
tree | 7e4873181f0b7e90bb83cdd79d0753f092b134eb /dir.c | |
parent | 1bbf8aae69e1850ceae2dac569577b6e6dd59dd0 (diff) | |
download | ruby-16ae65fe2b9a778be66189bb03c66d10b9e1afce.tar.gz |
use predefined IDs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -14,6 +14,7 @@ #include "ruby/encoding.h" #include "ruby/thread.h" #include "internal.h" +#include "id.h" #include "encindex.h" #include <sys/types.h> @@ -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. |