summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/array.c5
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;
}
}