Should not use mrb_float_value() with MRB_WITHOUT_FLOAT.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-08-08 14:14:17 +09:00
parent c849b894ed
commit ad8b36daa1
+1 -1
View File
@@ -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;