Skip to content

Commit 17b7070

Browse files
committed
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
1 parent 3d37e2b commit 17b7070

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vm_method.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ rb_method_entry_get_without_cache(VALUE klass, ID id,
571571
if (ruby_running) {
572572
struct cache_entry *ent;
573573
ent = GLOBAL_METHOD_CACHE(klass, id);
574-
ent->class_serial = RCLASS_EXT(klass)->class_serial;
574+
ent->class_serial = RCLASS_SERIAL(klass);
575575
ent->method_state = GET_GLOBAL_METHOD_STATE();
576576
ent->defined_class = defined_class;
577577
ent->mid = id;
@@ -611,7 +611,7 @@ rb_method_entry(VALUE klass, ID id, VALUE *defined_class_ptr)
611611
struct cache_entry *ent;
612612
ent = GLOBAL_METHOD_CACHE(klass, id);
613613
if (ent->method_state == GET_GLOBAL_METHOD_STATE() &&
614-
ent->class_serial == RCLASS_EXT(klass)->class_serial &&
614+
ent->class_serial == RCLASS_SERIAL(klass) &&
615615
ent->mid == id) {
616616
if (defined_class_ptr)
617617
*defined_class_ptr = ent->defined_class;

0 commit comments

Comments
 (0)