summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-30 13:17:45 (GMT)
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-30 13:17:45 (GMT)
commit3b895e8355b06facb4e80b27e527d560af4fd65a (patch)
treeda4823652a6806ff4bd6b3df671a9ad0da1de252 /re.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 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index 869fe2e..4bf18f5 100644
--- a/re.c
+++ b/re.c
@@ -1082,7 +1082,7 @@ match_backref_number(VALUE match, VALUE backref)
return NUM2INT(backref);
case T_SYMBOL:
- name = rb_id2name(SYM2ID(backref));
+ name = RSTRING_PTR(rb_sym2str(backref));
break;
case T_STRING: