Permalink
Browse files

Should specify instance type of Structs; fix #3591

  • Loading branch information...
matz committed Apr 5, 2017
1 parent 2daebfb commit bd7bf260e8946f721e3fb81b84c24bb31e92ab90
Showing with 1 addition and 0 deletions.
  1. +1 −0 mrbgems/mruby-struct/src/struct.c
@@ -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 */

0 comments on commit bd7bf26

Please sign in to comment.