summaryrefslogtreecommitdiffhomepage
path: root/src/class.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-06 00:18:46 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-06 00:18:46 +0900
commit55da4cdc86d7c766c78a3f4c980a63eb7d991aa1 (patch)
tree96bca7246f704b55bb3b29f6246e42fc34dd009b /src/class.c
parent803dcb512e2d01eae2fda0fa2db8953a3c485956 (diff)
parent91a90540737ddc233d0c68dea05d779fafc32e8e (diff)
downloadmruby-55da4cdc86d7c766c78a3f4c980a63eb7d991aa1.tar.gz
mruby-55da4cdc86d7c766c78a3f4c980a63eb7d991aa1.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'src/class.c')
-rw-r--r--src/class.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/class.c b/src/class.c
index a36f12e6b..1e2ac7aa0 100644
--- a/src/class.c
+++ b/src/class.c
@@ -522,6 +522,7 @@ mrb_mod_include(mrb_state *mrb, mrb_value klass)
mrb_value mod;
mrb_get_args(mrb, "o", &mod);
+ mrb_check_type(mrb, mod, MRB_TT_MODULE);
mrb_include_module(mrb, mrb_class_ptr(klass), mrb_class_ptr(mod));
return mod;
}