Make `flo_rount` to return `Integeral`.

parent bc180601
......@@ -726,7 +726,7 @@ flo_round(mrb_state *mrb, mrb_value num)
if (!isfinite(number)) return num;
return mrb_float_value(mrb, number);
}
return mrb_fixnum_value((mrb_int)number);
return mrb_int_value(mrb, number);
}
/* 15.2.9.3.14 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment