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.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-08-29 13:12:03 +09:00
parent 6aa091e5aa
commit 2a88a546b2
+2 -2
View File
@@ -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;