diff options
Diffstat (limited to 'src/array.c')
| -rw-r--r-- | src/array.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/array.c b/src/array.c index 02cc1a83a..48dc1ff10 100644 --- a/src/array.c +++ b/src/array.c @@ -662,9 +662,10 @@ aget_index(mrb_state *mrb, mrb_value index) return (mrb_int)mrb_float(index); } else { - mrb_int i; + mrb_int i, argc; + mrb_value *argv; - mrb_get_args(mrb, "i", &i); + mrb_get_args(mrb, "i*", &i, &argv, &argc); return i; } } |
