ruby-changes:22968
From: shugo <ko1@a...>
Date: Wed, 14 Mar 2012 18:41:55 +0900 (JST)
Subject: [ruby-changes:22968] shugo:r35017 (trunk): * enumerator.c: use long for array indices.
shugo 2012-03-14 18:41:44 +0900 (Wed, 14 Mar 2012) New Revision: 35017 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35017 Log: * enumerator.c: use long for array indices. Modified files: trunk/ChangeLog trunk/enumerator.c Index: ChangeLog =================================================================== --- ChangeLog (revision 35016) +++ ChangeLog (revision 35017) @@ -1,3 +1,7 @@ +Wed Mar 14 18:40:36 2012 Shugo Maeda <shugo@r...> + + * enumerator.c: use long for array indices. + Wed Mar 14 18:25:18 2012 Shugo Maeda <shugo@r...> * enumerator.c: moved the comment of StopIteration. Index: enumerator.c =================================================================== --- enumerator.c (revision 35016) +++ enumerator.c (revision 35017) @@ -1258,7 +1258,7 @@ { VALUE result = rb_yield_values2(argc - 1, &argv[1]); if (TYPE(result) == T_ARRAY) { - int i; + long i; for (i = 0; i < RARRAY_LEN(result); i++) { rb_funcall(argv[0], id_yield, 1, RARRAY_PTR(result)[i]); } @@ -1351,7 +1351,7 @@ lazy_zip_func_i(VALUE val, VALUE arg, int argc, VALUE *argv) { VALUE yielder, ary, v, result; - int i; + long i; yielder = argv[0]; ary = rb_ary_new2(RARRAY_LEN(arg) + 1); @@ -1369,7 +1369,7 @@ lazy_zip_func(VALUE val, VALUE arg, int argc, VALUE *argv) { VALUE yielder, ary, v; - int i; + long i; yielder = argv[0]; ary = rb_ary_new2(RARRAY_LEN(arg) + 1); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/