mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add cast to return from aget_index(); ref #2627
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user