summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-sprintf/src
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2013-03-29 21:48:18 +0900
committerMasaki Muranaka <[email protected]>2013-03-29 22:19:26 +0900
commit710f6252548f4a0eaf16a7b0d4d973a50e4520c0 (patch)
tree65451ed5edb13ae70e56da71332f2a714059224d /mrbgems/mruby-sprintf/src
parent6818ec0b38fdf2bd027b2088ed99606d74358d99 (diff)
downloadmruby-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.c2
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: