Avoid array copying in `mrb_instance_new`.

parent 603005ba
......@@ -1487,7 +1487,7 @@ mrb_instance_new(mrb_state *mrb, mrb_value cv)
mrb_int argc;
mrb_sym init;
mrb_get_args(mrb, "*&", &argv, &argc, &blk);
mrb_get_args(mrb, "*!&", &argv, &argc, &blk);
obj = mrb_instance_alloc(mrb, cv);
init = mrb_intern_lit(mrb, "initialize");
if (!mrb_func_basic_p(mrb, obj, init, mrb_bob_init)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment