summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-struct/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-07-25 14:19:10 +0900
committerGitHub <[email protected]>2016-07-25 14:19:10 +0900
commita66a1e92e79c25b14beb8a950ae96a7189b9a38d (patch)
treec86aafc625aac1e4b8580f3b60e4b845cb7f9d28 /mrbgems/mruby-struct/src
parent34ac707ea34880e168dc2428d477a33ca7ffec7d (diff)
parentbf21063a7245f5d8ae0773cf88422bece9d0e784 (diff)
downloadmruby-a66a1e92e79c25b14beb8a950ae96a7189b9a38d.tar.gz
mruby-a66a1e92e79c25b14beb8a950ae96a7189b9a38d.zip
Merge pull request #3179 from ksss/struct
Should not define to `Struct` class
Diffstat (limited to 'mrbgems/mruby-struct/src')
-rw-r--r--mrbgems/mruby-struct/src/struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-struct/src/struct.c b/mrbgems/mruby-struct/src/struct.c
index 51256c6af..1a06e0c12 100644
--- a/mrbgems/mruby-struct/src/struct.c
+++ b/mrbgems/mruby-struct/src/struct.c
@@ -299,7 +299,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;