summaryrefslogtreecommitdiffstats
path: root/enumerator.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-08 09:50:01 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-08 09:50:01 +0000
commit5c568c5cb3d91af356631ceb496bd0130e13cbc3 (patch)
tree86ca0193cb62d7791cfa6301c06204f3b723ac7e /enumerator.c
parent45b4cca4d0606799f954da7ae2e7a89dca2fc1a4 (diff)
downloadruby-5c568c5cb3d91af356631ceb496bd0130e13cbc3.tar.gz
ruby-5c568c5cb3d91af356631ceb496bd0130e13cbc3.tar.xz
ruby-5c568c5cb3d91af356631ceb496bd0130e13cbc3.zip
* enum.c (enum_zip): honor length of the receiver, not the
shortest length. [ruby-core:14738] * enum.c (enum_zip): returns array not enumerator for no block form. [ruby-core:14738] * enumerator.c (next_ii): do not ignore multiple values yielded. * array.c (rb_ary_zip): faster version without creating generators. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/enumerator.c b/enumerator.c
index 25c9ece24..2069b76ea 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -365,9 +365,9 @@ enumerator_with_index(VALUE obj)
}
static VALUE
-next_ii(VALUE i, VALUE obj)
+next_ii(VALUE i, VALUE obj, int argc, VALUE *argv)
{
- rb_fiber_yield(1, &i);
+ rb_fiber_yield(argc, argv);
return Qnil;
}