summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-27 07:56:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-27 07:56:17 +0000
commit9b4b5ad27c56ab713a95dfbfa84fdd74280fc9ca (patch)
treeed05a7f1ec1238fb1a111b40dff7c0e885d3ff0f /enumerator.c
parenta5f18c1f9d6e0917d7351c354c0f6245684cbd20 (diff)
enumerator.c: add comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 51c0959..a83c053 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);