reorder mrb_ary_new_from_values() args to (argc, argv)

This commit is contained in:
Yukihiro Matsumoto
2012-06-01 02:18:30 +09:00
parent 62f4270571
commit f56abcbb5a
4 changed files with 19 additions and 12 deletions
+1 -1
View File
@@ -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)) {