repo.or.cz
/
mruby.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
c27ae43
)
array.c (mrb_ary_unshift): use mrb_get_argc() and mrb_get_argv().
author
Yukihiro "Matz" Matsumoto
<
[email protected]
>
Fri, 21 Oct 2022 04:31:32 +0000
(21 13:31 +0900)
committer
Yukihiro "Matz" Matsumoto
<
[email protected]
>
Fri, 21 Oct 2022 04:31:32 +0000
(21 13:31 +0900)
src/array.c
patch
|
blob
|
blame
|
history
diff --git
a/src/array.c
b/src/array.c
index
e47c3b6
..
7c56c88
100644
(file)
--- a/
src/array.c
+++ b/
src/array.c
@@
-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;