mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add MRB_WITHOUT_FLOAT
This commit is contained in:
@@ -767,9 +767,11 @@ aget_index(mrb_state *mrb, mrb_value index)
|
||||
if (mrb_fixnum_p(index)) {
|
||||
return mrb_fixnum(index);
|
||||
}
|
||||
#ifndef MRB_WITHOUT_FLOAT
|
||||
else if (mrb_float_p(index)) {
|
||||
return (mrb_int)mrb_float(index);
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
mrb_int i, argc;
|
||||
mrb_value *argv;
|
||||
|
||||
Reference in New Issue
Block a user