diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-09-03 17:45:49 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 18:20:15 +0900 |
| commit | b81edb00354e7d13cd28c66f73a7643e37ebb482 (patch) | |
| tree | 06b64d52e450e96daf1984ee49f3b7ed1aecd7f3 | |
| parent | 86dee45f1dc23047f441de2cbbcbf17468e14542 (diff) | |
| download | mruby-b81edb00354e7d13cd28c66f73a7643e37ebb482.tar.gz mruby-b81edb00354e7d13cd28c66f73a7643e37ebb482.zip | |
Don't use `NEXT` within `switch` statement.
On non-`gcc` compatible environment, `NEXT` is translated to `break`.
| -rw-r--r-- | src/vm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2348,7 +2348,7 @@ RETRY_TRY_BLOCK: SET_INT_VALUE(mrb, regs[a], div); } } - NEXT; + goto L_DIV_OUT; #ifndef MRB_NO_FLOAT case TYPES2(MRB_TT_INTEGER,MRB_TT_FLOAT): x = (mrb_float)mrb_integer(regs[a]); @@ -2380,6 +2380,7 @@ RETRY_TRY_BLOCK: } SET_FLOAT_VALUE(mrb, regs[a], f); #endif + L_DIV_OUT: NEXT; } |
