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

ruby-changes:30141

From: ko1 <ko1@a...>
Date: Fri, 26 Jul 2013 18:31:28 +0900 (JST)
Subject: [ruby-changes:30141] ko1:r42193 (trunk): * array.c (ary_memcpy): cast to int to suppress a warning.

ko1	2013-07-26 18:31:17 +0900 (Fri, 26 Jul 2013)

  New Revision: 42193

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

  Log:
    * array.c (ary_memcpy): cast to int to suppress a warning.

  Modified files:
    trunk/ChangeLog
    trunk/array.c

Index: array.c
===================================================================
--- array.c	(revision 42192)
+++ array.c	(revision 42193)
@@ -69,7 +69,7 @@ ary_memcpy(VALUE ary, long beg, long arg https://github.com/ruby/ruby/blob/trunk/array.c#L69
 {
 #if 1
     if (OBJ_PROMOTED(ary)) {
-	if (argc > (128/sizeof(VALUE)) /* is magic number (cache line size) */) {
+	if (argc > (int)(128/sizeof(VALUE)) /* is magic number (cache line size) */) {
 	    rb_gc_writebarrier_remember_promoted(ary);
 	    RARRAY_PTR_USE(ary, ptr, {
 		MEMCPY(ptr+beg, argv, VALUE, argc);
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42192)
+++ ChangeLog	(revision 42193)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jul 26 18:30:14 2013  Koichi Sasada  <ko1@a...>
+
+	* array.c (ary_memcpy): cast to int to suppress a warning.
+
 Fri Jul 26 18:21:58 2013  Koichi Sasada  <ko1@a...>
 
 	* array.c (ary_memcpy): try to enable optimization.

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

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