Handle Array#[float, int] Close #2626

This commit is contained in:
mattn
2014-10-29 19:27:20 +09:00
parent cbbf840440
commit eaa0296fc5
+3
View File
@@ -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;