mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Should not use mrb_float_value() with MRB_WITHOUT_FLOAT.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user