diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-30 03:07:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-30 03:07:06 +0000 |
commit | 0a48ef908e86d8f9c96122f9e6f0d6d0e6dacbd0 (patch) | |
tree | b64007ed694704812e775863ea806611dfeb94cf /class.c | |
parent | f46cee77001814393f4e5e2f3ce18f2fad1f94b1 (diff) | |
download | ruby-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |