summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-31 14:38:38 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-31 14:38:38 (GMT)
commit6b9b85318a0cfd5fffb80426e3ff2bce133c26fd (patch)
treec8f490cc8eb148248c0e6ded2e99daa436694113 /vm_method.c
parentbf905503a0f403c2676006f7113b95c5e5151afc (diff)
variable.c, vm_method.c: pin down
* variable.c (rb_alias_variable): ensure pinned down. * vm_method.c (rb_method_entry_make): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c
index 6b2eaf8..d551332 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -333,6 +333,8 @@ rb_method_entry_make(VALUE klass, ID mid, rb_method_type_t type,
rb_unlink_method_entry(old_me);
}
+ mid = SYM2ID(ID2SYM(mid));
+
me = ALLOC(rb_method_entry_t);
rb_clear_method_cache_by_class(klass);