mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
array.c (mrb_ary_unshift): use mrb_get_argc() and mrb_get_argv().
This commit is contained in:
+2
-1
@@ -707,7 +707,8 @@ mrb_ary_unshift_m(mrb_state *mrb, mrb_value self)
|
||||
mrb_value *ptr;
|
||||
mrb_int alen, len;
|
||||
|
||||
mrb_get_args(mrb, "*!", &vals, &alen);
|
||||
alen = mrb_get_argc(mrb);
|
||||
vals = mrb_get_argv(mrb);
|
||||
if (alen == 0) {
|
||||
ary_modify_check(mrb, a);
|
||||
return self;
|
||||
|
||||
Reference in New Issue
Block a user