1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* enum.c (zip_i): variadic argument needs explicit cast on the

platforms where VALUE is longer than int.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2012-03-19 07:39:12 +00:00
parent 831898bd99
commit 592a629bd0
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Mar 19 16:34:14 2012 Shugo Maeda <shugo@ruby-lang.org>
* enum.c (zip_i): variadic argument needs explicit cast on the
platforms where VALUE is longer than int.
Mon Mar 19 15:36:41 2012 Shugo Maeda <shugo@ruby-lang.org>
* enumerator.c (enumerable_lazy): add an example of take and first

2
enum.c
View file

@ -1943,7 +1943,7 @@ zip_i(VALUE val, NODE *memo, int argc, VALUE *argv)
VALUE v[2];
v[1] = RARRAY_PTR(args)[i];
rb_rescue2(call_next, (VALUE)v, call_stop, (VALUE)v, rb_eStopIteration, 0);
rb_rescue2(call_next, (VALUE)v, call_stop, (VALUE)v, rb_eStopIteration, (VALUE)0);
if (v[0] == Qundef) {
RARRAY_PTR(args)[i] = Qnil;
v[0] = Qnil;