зеркало из https://github.com/github/ruby.git
* enumerator.c (lazy_init_iterator): no need to check overflow twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
25ac2aaf81
Коммит
641e9e7bce
|
@ -1,3 +1,7 @@
|
|||
Fri Mar 16 06:29:29 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* enumerator.c (lazy_init_iterator): no need to check overflow twice.
|
||||
|
||||
Fri Mar 16 05:47:09 2012 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* enumerator.c (lazy_init_iterator): Fix type error (int vs long).
|
||||
|
|
|
@ -1177,7 +1177,7 @@ lazy_init_iterator(VALUE val, VALUE m, int argc, VALUE *argv)
|
|||
if (argc > 0) {
|
||||
rb_ary_cat(args, argv, argc);
|
||||
}
|
||||
result = rb_yield_values2(RARRAY_LENINT(args), RARRAY_PTR(args));
|
||||
result = rb_yield_values2(len, RARRAY_PTR(args));
|
||||
RB_GC_GUARD(args);
|
||||
}
|
||||
if (result == Qundef) rb_iter_break();
|
||||
|
|
Загрузка…
Ссылка в новой задаче