summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_method.c b/vm_method.c
index eab12f024e..b2cff6f13d 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -61,10 +61,10 @@ static struct {
/* int ruby_running = 0; */
static void
-rb_class_clear_method_cache(VALUE klass)
+rb_class_clear_method_cache(VALUE klass, VALUE arg)
{
RCLASS_SERIAL(klass) = rb_next_class_serial();
- rb_class_foreach_subclass(klass, rb_class_clear_method_cache);
+ rb_class_foreach_subclass(klass, rb_class_clear_method_cache, arg);
}
void
@@ -95,7 +95,7 @@ rb_clear_method_cache_by_class(VALUE klass)
INC_GLOBAL_METHOD_STATE();
}
else {
- rb_class_clear_method_cache(klass);
+ rb_class_clear_method_cache(klass, Qnil);
}
}
}