Commit 9b176207 authored by Jun Hiroe's avatar Jun Hiroe

Refactor flo_mod func in numeric.c

parent 8a2291b2
......@@ -337,12 +337,11 @@ static mrb_value
flo_mod(mrb_state *mrb, mrb_value x)
{
mrb_value y;
mrb_float fy, mod;
mrb_float mod;
mrb_get_args(mrb, "o", &y);
fy = mrb_to_flo(mrb, y);
flodivmod(mrb, mrb_float(x), fy, 0, &mod);
flodivmod(mrb, mrb_float(x), mrb_to_flo(mrb, y), 0, &mod);
return mrb_float_value(mrb, mod);
}
......
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