diff options
| author | Masaki Muranaka <[email protected]> | 2013-03-29 21:48:18 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-03-29 22:19:26 +0900 |
| commit | 710f6252548f4a0eaf16a7b0d4d973a50e4520c0 (patch) | |
| tree | 65451ed5edb13ae70e56da71332f2a714059224d /src/object.c | |
| parent | 6818ec0b38fdf2bd027b2088ed99606d74358d99 (diff) | |
| download | mruby-710f6252548f4a0eaf16a7b0d4d973a50e4520c0.tar.gz mruby-710f6252548f4a0eaf16a7b0d4d973a50e4520c0.zip | |
Remove mrb_flt2big() as there is no bignum in the core.
Add new API mrb_flo_to_fixnum(). You can replace mrb_flt2big() to mrb_flo_to_fixnum() with few modifications.
Diffstat (limited to 'src/object.c')
| -rw-r--r-- | src/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c index bd88459ae..bc59b615e 100644 --- a/src/object.c +++ b/src/object.c @@ -530,7 +530,7 @@ mrb_convert_to_integer(mrb_state *mrb, mrb_value val, int base) if (FIXABLE(mrb_float(val))) { break; } - return mrb_flt2big(mrb, mrb_float(val)); + return mrb_flo_to_fixnum(mrb, val); case MRB_TT_FIXNUM: if (base != 0) goto arg_error; |
