summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-31 14:38:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-31 14:38:38 +0000
commit6b9b85318a0cfd5fffb80426e3ff2bce133c26fd (patch)
treec8f490cc8eb148248c0e6ded2e99daa436694113 /variable.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 'variable.c')
-rw-r--r--variable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index 292b084..265633f 100644
--- a/variable.c
+++ b/variable.c
@@ -873,6 +873,7 @@ rb_alias_variable(ID name1, ID name2)
entry2 = rb_global_entry(name2);
if (!st_lookup(rb_global_tbl, (st_data_t)name1, &data1)) {
+ name1 = SYM2ID(ID2SYM(name1));
entry1 = ALLOC(struct global_entry);
entry1->id = name1;
st_add_direct(rb_global_tbl, name1, (st_data_t)entry1);