mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Don't use NEXT within switch statement.
On non-`gcc` compatible environment, `NEXT` is translated to `break`.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user