use mrb_float instead of double

This commit is contained in:
Yukihiro Matsumoto
2012-04-26 11:13:45 +09:00
parent 5aa1c95710
commit 7b3d628c86
4 changed files with 52 additions and 54 deletions
+1 -1
View File
@@ -569,7 +569,7 @@ mrb_convert_to_integer(mrb_state *mrb, mrb_value val, int base)
&& mrb_float(val) >= (double)FIXNUM_MIN) {
break;
}
return mrb_dbl2big(mrb, mrb_float(val));
return mrb_flt2big(mrb, mrb_float(val));
case MRB_TT_FIXNUM:
if (base != 0) goto arg_error;