mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
reorder mrb_ary_new_from_values() args to (argc, argv)
This commit is contained in:
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user