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 /mrbgems/mruby-sprintf/src | |
| 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 'mrbgems/mruby-sprintf/src')
| -rw-r--r-- | mrbgems/mruby-sprintf/src/sprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-sprintf/src/sprintf.c b/mrbgems/mruby-sprintf/src/sprintf.c index d2ea4c321..82a4d7ab4 100644 --- a/mrbgems/mruby-sprintf/src/sprintf.c +++ b/mrbgems/mruby-sprintf/src/sprintf.c @@ -806,7 +806,7 @@ retry: val = mrb_fixnum_value((mrb_int)mrb_float(val)); goto bin_retry; } - val = mrb_flt2big(mrb, mrb_float(val)); + val = mrb_flo_to_fixnum(mrb, val); if (mrb_fixnum_p(val)) goto bin_retry; break; case MRB_TT_STRING: |
