summaryrefslogtreecommitdiffhomepage
path: root/src/struct.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-01 02:18:30 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-01 02:18:30 +0900
commitf56abcbb5a78b51b0edf0603b4e0e54ed70fd0d2 (patch)
tree95789bd28bdd9c3341f7d913c4cfbf071f722b1a /src/struct.c
parent62f42705714d647159218d4743b2d036bb90bc8a (diff)
downloadmruby-f56abcbb5a78b51b0edf0603b4e0e54ed70fd0d2.tar.gz
mruby-f56abcbb5a78b51b0edf0603b4e0e54ed70fd0d2.zip
reorder mrb_ary_new_from_values() args to (argc, argv)
Diffstat (limited to 'src/struct.c')
-rw-r--r--src/struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/struct.c b/src/struct.c
index 699825cff..d06124b50 100644
--- a/src/struct.c
+++ b/src/struct.c
@@ -379,7 +379,7 @@ mrb_struct_s_def(mrb_state *mrb, mrb_value klass)
pargv = &argv[0];
argcnt++;
}
- rest = mrb_ary_new_from_values(mrb, pargv, argcnt);
+ rest = mrb_ary_new_from_values(mrb, argcnt, pargv);
}
st = make_struct(mrb, name, rest, struct_class(mrb));
if (!mrb_nil_p(b)) {