summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-22 17:43:57 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-22 17:43:57 +0000
commitfc63eb3a7763d460a451af88dc34403a7977749a (patch)
treefd9c7c5d4cc8989c596f379b5adc1e3b52e38f9e /enum.c
parent47773e62a68c4b4d79daaae3de31fc7d89a4af6a (diff)
* enum.c (each_with_index_i): typo.
* eval.c (rb_yield_splat): should call svalue_to_avalue() before calling rb_yield_0(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index ac27757bd4..ee0b05838f 100644
--- a/enum.c
+++ b/enum.c
@@ -499,7 +499,7 @@ each_with_index_i(val, memo)
VALUE val;
NODE *memo;
{
- rb_yield_values(val, INT2FIX(memo->u3.cnt));
+ rb_yield_values(2, val, INT2FIX(memo->u3.cnt));
memo->u3.cnt++;
return Qnil;
}