summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authortmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-20 22:40:53 +0000
committertmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-20 22:40:53 +0000
commit96225160f6bffb31dea5ab3c75746d415458d4b6 (patch)
treef9c2721919160d417bc43990288f863531ed5118 /vm_method.c
parent6944b38f7fa9de655ff3d4de28ea449825c874c0 (diff)
vm_method.c: use RCLASS_SERIAL macro instead of direct access
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_method.c b/vm_method.c
index 2a74637..8723a51 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -576,7 +576,7 @@ rb_method_entry_get_without_cache(VALUE klass, ID id,
if (ruby_running) {
struct cache_entry *ent;
ent = GLOBAL_METHOD_CACHE(klass, id);
- ent->class_serial = RCLASS_EXT(klass)->class_serial;
+ ent->class_serial = RCLASS_SERIAL(klass);
ent->method_state = GET_GLOBAL_METHOD_STATE();
ent->defined_class = defined_class;
ent->mid = id;
@@ -616,7 +616,7 @@ rb_method_entry(VALUE klass, ID id, VALUE *defined_class_ptr)
struct cache_entry *ent;
ent = GLOBAL_METHOD_CACHE(klass, id);
if (ent->method_state == GET_GLOBAL_METHOD_STATE() &&
- ent->class_serial == RCLASS_EXT(klass)->class_serial &&
+ ent->class_serial == RCLASS_SERIAL(klass) &&
ent->mid == id) {
if (defined_class_ptr)
*defined_class_ptr = ent->defined_class;