mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user