summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-30 12:36:34 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-30 12:36:34 (GMT)
commit00b040b8d584e6c234437d36ab17c0b714b9a893 (patch)
treeb6986df81b22f4e73e9da8a26f3ab99477f11985 /vm_method.c
parent6db9db48aded195bda3a888ceac0c1cdd7c62d05 (diff)
thread.c, vm_method.c: avoid inadvertent pin-down
* thread.c (rb_thread_variable_set): get rid of inadvertent dynamic symbol pin-down. * vm_method.c (obj_respond_to): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index cb450b1..050f5f7 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -1694,7 +1694,7 @@ obj_respond_to(int argc, VALUE *argv, VALUE obj)
if (!(id = rb_check_id(&mid))) {
if (!rb_method_basic_definition_p(CLASS_OF(obj), idRespond_to_missing)) {
VALUE args[2];
- args[0] = ID2SYM(rb_to_id(mid));
+ args[0] = rb_to_symbol(mid);
args[1] = priv;
return rb_funcall2(obj, idRespond_to_missing, 2, args);
}