Don't use `NEXT` within `switch` statement.

On non-`gcc` compatible environment, `NEXT` is translated to `break`.
parent 86dee45f
......@@ -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;
}
......
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