aboutsummaryrefslogtreecommitdiffstats
path: root/class.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 01:40:28 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 01:40:28 +0000
commit32024dac48ec640bc2e51142eda2c48f7a6a8516 (patch)
tree494765399e4ae0725c02c5ceabd62156fa7997ff /class.c
parent1c47e3cd95b82009a058afc27dfed1c8ec2fccf0 (diff)
downloadruby-32024dac48ec640bc2e51142eda2c48f7a6a8516.tar.gz
variable.c (rb_st_insert_id_and_value): reduce args
Minor simplification; this will hopefully make future patches for switching to id_table easier-to-review. * internal.h (rb_st_insert_id_and_value): update prototype * variable.c (rb_st_insert_id_and_value): reduce args (find_class_path): adjust call for less args (rb_ivar_set): ditto (rb_cvar_set): ditto * class.c (rb_singleton_class_attached): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52374 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 a1b3eba02c..46ef7d76e9 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, RCLASS_IV_TBL(klass), id_attached, obj);
+ rb_st_insert_id_and_value(klass, id_attached, obj);
}
}