aboutsummaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
authorcharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-09 11:00:23 +0000
committercharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-09 11:00:23 +0000
commitc039c7081594a7e8e7cf5e96abbdc8fc6ac43a21 (patch)
tree5c9b5583e2abcf5b3a458f4ced9cafd4d5cab9c6 /vm_method.c
parent7df979812699f153791b95e9c37f6c61b0cfb599 (diff)
downloadruby-c039c7081594a7e8e7cf5e96abbdc8fc6ac43a21.tar.gz
* internal.h (RCLASS_SERIAL): Add RCLASS_SERIAL as a convenience
accessor for RCLASS_EXT(klass)->class_serial. * class.c, vm_insnhelper.c, vm_method.c: Use RCLASS_SERIAL git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index 7a7615830b..a7aa496c95 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -39,7 +39,7 @@ static struct cache_entry global_method_cache[GLOBAL_METHOD_CACHE_SIZE];
static void
rb_class_clear_method_cache(VALUE klass)
{
- RCLASS_EXT(klass)->class_serial = rb_next_class_serial();
+ RCLASS_SERIAL(klass) = rb_next_class_serial();
rb_class_foreach_subclass(klass, rb_class_clear_method_cache);
}