diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-08-14 15:08:48 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-08-14 15:08:48 +0900 |
| commit | d986b9ff7b360a0961410950b2387ee49b5ac3c7 (patch) | |
| tree | acae2675e4fb947529b019e3375a4bc63f683f9e /src | |
| parent | 603005ba6508da59220a4c7385a0c98bda78a201 (diff) | |
| download | mruby-d986b9ff7b360a0961410950b2387ee49b5ac3c7.tar.gz mruby-d986b9ff7b360a0961410950b2387ee49b5ac3c7.zip | |
Avoid array copying in `mrb_instance_new`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class.c b/src/class.c index 112257380..8c790507e 100644 --- a/src/class.c +++ b/src/class.c @@ -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)) { |
