[前][次][番号順一覧][スレッド一覧]

ruby-changes:23041

From: shugo <ko1@a...>
Date: Mon, 19 Mar 2012 16:39:26 +0900 (JST)
Subject: [ruby-changes:23041] shugo:r35091 (trunk): * enum.c (zip_i): variadic argument needs explicit cast on the

shugo	2012-03-19 16:39:12 +0900 (Mon, 19 Mar 2012)

  New Revision: 35091

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35091

  Log:
    * enum.c (zip_i):  variadic argument needs explicit cast on the
      platforms where VALUE is longer than int.

  Modified files:
    trunk/ChangeLog
    trunk/enum.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35090)
+++ ChangeLog	(revision 35091)
@@ -1,3 +1,8 @@
+Mon Mar 19 16:34:14 2012  Shugo Maeda  <shugo@r...>
+
+	* 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@r...>
 
 	* enumerator.c (enumerable_lazy): add an example of take and first
Index: enum.c
===================================================================
--- enum.c	(revision 35090)
+++ enum.c	(revision 35091)
@@ -1943,7 +1943,7 @@
 	    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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]