mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Initialize mt of module with khash.
This commit is contained in:
@@ -1065,6 +1065,7 @@ struct RClass *
|
||||
mrb_module_new(mrb_state *mrb)
|
||||
{
|
||||
struct RClass *m = (struct RClass*)mrb_obj_alloc(mrb, MRB_TT_MODULE, mrb->module_class);
|
||||
m->mt = kh_init(mt, mrb);
|
||||
|
||||
return m;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user