aboutsummaryrefslogtreecommitdiffstats
path: root/class.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 03:07:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 03:07:06 +0000
commit0a48ef908e86d8f9c96122f9e6f0d6d0e6dacbd0 (patch)
treeb64007ed694704812e775863ea806611dfeb94cf /class.c
parentf46cee77001814393f4e5e2f3ce18f2fad1f94b1 (diff)
downloadruby-0a48ef908e86d8f9c96122f9e6f0d6d0e6dacbd0.tar.gz
variable.c: rb_class_ivar_set
* variable.c (rb_class_ivar_set): rename as class specific ivar setter, and st_table is no longer involved. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/class.c b/class.c
index 46ef7d76e9..7a9db63dcc 100644
--- a/class.c
+++ b/class.c
@@ -426,7 +426,7 @@ rb_singleton_class_attached(VALUE klass, VALUE obj)
if (!RCLASS_IV_TBL(klass)) {
RCLASS_IV_TBL(klass) = st_init_numtable();
}
- rb_st_insert_id_and_value(klass, id_attached, obj);
+ rb_class_ivar_set(klass, id_attached, obj);
}
}