diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-18 12:10:07 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-18 12:10:07 +0000 |
commit | 1b07f290597416d7ca947f64d6dab726a73d2e37 (patch) | |
tree | 825d867248a57ca9614b510611523d402497af0f | |
parent | fc87e19f2d9cc0dbc252ef535eab5fb841c2f0b7 (diff) | |
download | ruby-1b07f290597416d7ca947f64d6dab726a73d2e37.tar.gz |
* vm_method.c (prepare_callable_method_entry): use
RCLASS_CALLABLE_M_TBL() instead of accessing a filed directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | vm_method.c | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Wed Nov 18 21:09:08 2015 Koichi Sasada <ko1@atdot.net> + + * vm_method.c (prepare_callable_method_entry): use + RCLASS_CALLABLE_M_TBL() instead of accessing a filed directly. + Wed Nov 18 17:08:18 2015 Koichi Sasada <ko1@atdot.net> * method.h: introduce the folliwing field and macros. diff --git a/vm_method.c b/vm_method.c index 685e31fa7c..5089c31ee4 100644 --- a/vm_method.c +++ b/vm_method.c @@ -465,7 +465,6 @@ rb_method_entry_make(VALUE klass, ID mid, VALUE defined_class, rb_method_visibil rb_method_type_t type, rb_method_definition_t *def, ID original_id, void *opts) { rb_method_entry_t *me; - struct rb_id_table *mtbl; st_data_t data; int make_refined = 0; @@ -767,7 +766,7 @@ prepare_callable_method_entry(VALUE defined_class, ID id, const rb_method_entry_ VM_ASSERT(RB_TYPE_P(defined_class, T_ICLASS)); VM_ASSERT(me->defined_class == 0); - if ((mtbl = RCLASS_EXT(defined_class)->callable_m_tbl) == NULL) { + if ((mtbl = RCLASS_CALLABLE_M_TBL(defined_class)) == NULL) { mtbl = RCLASS_EXT(defined_class)->callable_m_tbl = rb_id_table_create(0); } |