summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 03:07:06 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 03:07:06 (GMT)
commit6f77d0a3aa1cc09e7d7926bb62b9e076a5048bfa (patch)
treeb64007ed694704812e775863ea806611dfeb94cf /class.c
parenta96626e6da972d3e0d78669c075405de43c66eda (diff)
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 46ef7d7..7a9db63 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);
}
}