Should not define to Struct class

This commit is contained in:
ksss
2016-07-22 15:26:11 +09:00
parent 97283faa16
commit 1a8074accf
+1 -1
View File
@@ -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;