From 2a88a546b220d9abe483b27c81d5f12c3342f37f Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 29 Aug 2018 13:12:03 +0900 Subject: 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. --- include/mruby.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/mruby.h') diff --git a/include/mruby.h b/include/mruby.h index 1c888bb46..2d30d3d27 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -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; -- cgit v1.2.3