diff options
| author | ksss <[email protected]> | 2016-07-22 15:26:11 +0900 |
|---|---|---|
| committer | ksss <[email protected]> | 2016-07-22 15:26:11 +0900 |
| commit | 1a8074accf71dd39534fc11d0d01dbe8220f0581 (patch) | |
| tree | ab641af5f9c9853540a880bd1d061d3661f3c8c8 | |
| parent | 97283faa16d2e69a27de891e5a6695bf370cb4c3 (diff) | |
| download | mruby-1a8074accf71dd39534fc11d0d01dbe8220f0581.tar.gz mruby-1a8074accf71dd39534fc11d0d01dbe8220f0581.zip | |
Should not define to `Struct` class
| -rw-r--r-- | mrbgems/mruby-struct/src/struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-struct/src/struct.c b/mrbgems/mruby-struct/src/struct.c index f084e4031..892a26872 100644 --- a/mrbgems/mruby-struct/src/struct.c +++ b/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; |
