Merge pull request #5090 from zubycz/fix_error_when_build_without_float

Fix argument error when built with MRB_WITHOUT_FLOAT flag
This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-10-12 16:19:04 +09:00
committed by GitHub
+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_fixnum_value(mrb, mrb_fixnum(xv) / y);
return mrb_fixnum_value(mrb_fixnum(xv) / y);
#else
mrb_float x, y;