summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-11 10:36:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-11 10:36:37 +0000
commit025343654dca186444e1eafc3760ad895366c46d (patch)
tree30f408572ab38b4d3d9b8dc182b73e9526fd24ac /compile.c
parent47c82df27ff73c5181f7bd4505b4c98a96f15a0c (diff)
Get rid of a magic number
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index ba9acfcd00..36541b5dd7 100644
--- a/compile.c
+++ b/compile.c
@@ -1363,7 +1363,7 @@ iseq_setup(rb_iseq_t *iseq, LINK_ANCHOR *const anchor)
static int
iseq_set_exception_local_table(rb_iseq_t *iseq)
{
- iseq->body->local_table_size = 1;
+ iseq->body->local_table_size = numberof(rb_iseq_shared_exc_local_tbl);
iseq->body->local_table = rb_iseq_shared_exc_local_tbl;
return COMPILE_OK;
}