Permalink
Browse files

Should not define to `Struct` class

  • Loading branch information...
ksss committed Jul 22, 2016
1 parent 97283fa commit 1a8074accf71dd39534fc11d0d01dbe8220f0581
Showing with 1 addition and 1 deletion.
  1. +1 −1 mrbgems/mruby-struct/src/struct.c
@@ -361,7 +361,7 @@ mrb_struct_s_def(mrb_state *mrb, mrb_value klass)
}
st = make_struct(mrb, name, rest, struct_class(mrb));
if (!mrb_nil_p(b)) {
mrb_yield_with_class(mrb, b, 1, &st, st, mrb_class_ptr(klass));
mrb_yield_with_class(mrb, b, 1, &st, st, mrb_class_ptr(st));
}
return st;

0 comments on commit 1a8074a

Please sign in to comment.