Commit eaa0296f authored by mattn's avatar mattn

Handle Array#[float, int] Close #2626

parent cbbf8404
......@@ -658,6 +658,9 @@ aget_index(mrb_state *mrb, mrb_value index)
if (mrb_fixnum_p(index)) {
return mrb_fixnum(index);
}
else if (mrb_float_p(index)) {
return mrb_float(index);
}
else {
mrb_int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment