Unverified Commit 8853b035 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #5090 from zubycz/fix_error_when_build_without_float

Fix argument error when built with MRB_WITHOUT_FLOAT flag
parents f53781bd afc0d7a6
......@@ -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