Commit 69beaea2 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2627 from mattn/fix-2626

Handle Array#[float, int] Close #2626
parents cbbf8404 eaa0296f
......@@ -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