mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Should specify instance type of Structs; fix #3591
This commit is contained in:
@@ -679,6 +679,7 @@ mrb_mruby_struct_gem_init(mrb_state* mrb)
|
||||
{
|
||||
struct RClass *st;
|
||||
st = mrb_define_class(mrb, "Struct", mrb->object_class);
|
||||
MRB_SET_INSTANCE_TT(st, MRB_TT_ARRAY);
|
||||
|
||||
mrb_define_class_method(mrb, st, "new", mrb_struct_s_def, MRB_ARGS_ANY()); /* 15.2.18.3.1 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user