* enumerator.c (lazy_zip_func): 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@35049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
641e9e7bce
commit
a1f4163dd3
@ -1,4 +1,7 @@
|
|||||||
Fri Mar 16 06:29:29 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Mar 16 06:30:10 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* enumerator.c (lazy_zip_func): variadic argument needs explicit cast
|
||||||
|
on the platforms where VALUE is longer than int.
|
||||||
|
|
||||||
* enumerator.c (lazy_init_iterator): no need to check overflow twice.
|
* enumerator.c (lazy_init_iterator): no need to check overflow twice.
|
||||||
|
|
||||||
|
@ -1420,7 +1420,7 @@ lazy_zip_func(VALUE val, VALUE arg, int argc, VALUE *argv)
|
|||||||
rb_ary_push(ary, argv[1]);
|
rb_ary_push(ary, argv[1]);
|
||||||
for (i = 0; i < RARRAY_LEN(arg); i++) {
|
for (i = 0; i < RARRAY_LEN(arg); i++) {
|
||||||
v = rb_rescue2(call_next, RARRAY_PTR(arg)[i], next_stopped, 0,
|
v = rb_rescue2(call_next, RARRAY_PTR(arg)[i], next_stopped, 0,
|
||||||
rb_eStopIteration, 0);
|
rb_eStopIteration, (VALUE)0);
|
||||||
rb_ary_push(ary, v);
|
rb_ary_push(ary, v);
|
||||||
}
|
}
|
||||||
rb_funcall(yielder, id_yield, 1, ary);
|
rb_funcall(yielder, id_yield, 1, ary);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user