summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-30 13:17:45 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-30 13:17:45 +0000
commit3b895e8355b06facb4e80b27e527d560af4fd65a (patch)
treeda4823652a6806ff4bd6b3df671a9ad0da1de252 /process.c
parent00b040b8d584e6c234437d36ab17c0b714b9a893 (diff)
* process.c (rlimit_resource_type, rlimit_resource_value):
get rid of inadvertent dynamic symbol pin-down. * re.c (match_backref_number): ditto. * signal.c (esignal_init, rb_f_kill, trap_signm): ditto. * transcode.c (econv_opts): ditto. * vm_trace.c (symbol2event_flag): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/process.c b/process.c
index cd498fe..e9d1b06 100644
--- a/process.c
+++ b/process.c
@@ -4529,7 +4529,7 @@ rlimit_resource_type(VALUE rtype)
switch (TYPE(rtype)) {
case T_SYMBOL:
- name = rb_id2name(SYM2ID(rtype));
+ name = RSTRING_PTR(rb_sym2str(rtype));
break;
default:
@@ -4564,7 +4564,7 @@ rlimit_resource_value(VALUE rval)
switch (TYPE(rval)) {
case T_SYMBOL:
- name = rb_id2name(SYM2ID(rval));
+ name = RSTRING_PTR(rb_sym2str(rval));
break;
default: