Commit afc0d7a6 authored by ssmallkirby's avatar ssmallkirby

Fix argument error when built with MRB_WITHOUT_FLOAT flag

Fixed inproper argument of mrb_fixnum_value() called in integral_div(),
when built with MRB_WITHOUT_FLOAT flag.
Co-authored-by: default avatartaiyoslime <t@iyosli.me>
Co-authored-by: default avatarn4o847 <22975590+n4o847@users.noreply.github.com>
parent 9ea7b718
......@@ -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;
......
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