diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/array.c b/src/array.c index 6f04efe84..02cc1a83a 100644 --- a/src/array.c +++ b/src/array.c @@ -659,7 +659,7 @@ aget_index(mrb_state *mrb, mrb_value index) return mrb_fixnum(index); } else if (mrb_float_p(index)) { - return mrb_float(index); + return (mrb_int)mrb_float(index); } else { mrb_int i; |
