Should not use `mrb_float_value()` with `MRB_WITHOUT_FLOAT`.

parent c849b894
......@@ -158,7 +158,7 @@ integral_div(mrb_state *mrb, mrb_value xv)
if (y == 0) {
mrb_raise(mrb, E_RUNTIME_ERROR, "devided by zero");
}
return mrb_float_value(mrb, mrb_fixnum(xv) / y);
return mrb_fixnum_value(mrb, mrb_fixnum(xv) / y);
#else
mrb_float x, y;
......
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