summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/enumerator.c b/enumerator.c
index 51c09597a7..a83c0533d7 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -448,6 +448,7 @@ enumerator_each(int argc, VALUE *argv, VALUE obj)
VALUE args = e->args;
if (args) {
#if SIZEOF_INT < SIZEOF_LONG
+ /* check int range overflow */
rb_long2int(RARRAY_LEN(args) + argc);
#endif
args = rb_ary_dup(args);