diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-30 12:36:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-30 12:36:34 +0000 |
commit | 00b040b8d584e6c234437d36ab17c0b714b9a893 (patch) | |
tree | b6986df81b22f4e73e9da8a26f3ab99477f11985 /thread.c | |
parent | 6db9db48aded195bda3a888ceac0c1cdd7c62d05 (diff) | |
download | ruby-00b040b8d584e6c234437d36ab17c0b714b9a893.tar.gz |
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 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2928,7 +2928,7 @@ rb_thread_variable_set(VALUE thread, VALUE id, VALUE val) } locals = rb_ivar_get(thread, id_locals); - return rb_hash_aset(locals, ID2SYM(rb_to_id(id)), val); + return rb_hash_aset(locals, rb_to_symbol(id), val); } /* |