Fix type of `eidx` and `ridx` from `uint8_t` to `uint16_t`; fix #4088

A byte was too small to hold ensure&rescue stacks indexes.
parent 6aa091e5
......@@ -152,9 +152,9 @@ struct mrb_context {
mrb_callinfo *cibase, *ciend;
uint16_t *rescue; /* exception handler stack */
int rsize;
uint16_t rsize;
struct RProc **ensure; /* ensure handler stack */
uint8_t esize, eidx;
uint16_t esize, eidx;
enum mrb_fiber_state status;
mrb_bool vmexec;
......
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