summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class.c b/src/class.c
index 5c5aa52f0..44d415f0c 100644
--- a/src/class.c
+++ b/src/class.c
@@ -897,7 +897,7 @@ mrb_mod_initialize(mrb_state *mrb, mrb_value mod)
mrb_get_args(mrb, "&", &b);
if (!mrb_nil_p(b)) {
- mrb_yield_with_class(mrb, b, 0, 0, mod, mrb_class_ptr(mod));
+ mrb_yield_with_class(mrb, b, 1, &mod, mod, mrb_class_ptr(mod));
}
return mod;
}