diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-08-08 14:14:17 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-08-08 14:14:17 +0900 |
| commit | ad8b36daa1a10746ad6829670b26f0f05c151b4c (patch) | |
| tree | c3962a04d42cf8832a1a7cf18632a0f782049ae9 /src | |
| parent | c849b894edbf5bb170721e836bbef514fb74d074 (diff) | |
| download | mruby-ad8b36daa1a10746ad6829670b26f0f05c151b4c.tar.gz mruby-ad8b36daa1a10746ad6829670b26f0f05c151b4c.zip | |
Should not use `mrb_float_value()` with `MRB_WITHOUT_FLOAT`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/numeric.c b/src/numeric.c index ae05170be..54a54f563 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -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; |
