add cast to return from aget_index(); ref #2627

parent 69beaea2
...@@ -659,7 +659,7 @@ aget_index(mrb_state *mrb, mrb_value index) ...@@ -659,7 +659,7 @@ aget_index(mrb_state *mrb, mrb_value index)
return mrb_fixnum(index); return mrb_fixnum(index);
} }
else if (mrb_float_p(index)) { else if (mrb_float_p(index)) {
return mrb_float(index); return (mrb_int)mrb_float(index);
} }
else { else {
mrb_int i; 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