diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-23 11:28:17 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-23 11:28:17 +0900 |
| commit | 39dc7b79014413f4f45f30fc977366b58814ab02 (patch) | |
| tree | 7f29a7fae24a53d2f25c936c37c6b2b3a71f7050 /src | |
| parent | dc88a87f9b062b744b0500ffd5ffddfbd9308c2b (diff) | |
| download | mruby-39dc7b79014413f4f45f30fc977366b58814ab02.tar.gz mruby-39dc7b79014413f4f45f30fc977366b58814ab02.zip | |
vm.c: fix errors with `MRB_NO_FLOAT`; fix #5421
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1138,8 +1138,6 @@ check_target_class(mrb_state *mrb) mrb_value mrb_obj_missing(mrb_state *mrb, mrb_value mod); void mrb_hash_check_kdict(mrb_state *mrb, mrb_value self); -mrb_int mrb_div_int(mrb_state *mrb, mrb_int x, mrb_int y); -mrb_float mrb_div_flo(mrb_float x, mrb_float y); MRB_API mrb_value mrb_vm_exec(mrb_state *mrb, const struct RProc *proc, const mrb_code *pc) @@ -2442,7 +2440,9 @@ RETRY_TRY_BLOCK: CASE(OP_DIV, B) { #ifndef MRB_NO_FLOAT mrb_float x, y, f; + mrb_float mrb_div_flo(mrb_float x, mrb_float y); #endif + mrb_int mrb_div_int(mrb_state *mrb, mrb_int x, mrb_int y); /* need to check if op is overridden */ switch (TYPES2(mrb_type(regs[a]),mrb_type(regs[a+1]))) { |
