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

ruby-changes:42889

From: nobu <ko1@a...>
Date: Mon, 9 May 2016 12:30:35 +0900 (JST)
Subject: [ruby-changes:42889] nobu:r54963 (trunk): random.c: consitify

nobu	2016-05-09 13:27:12 +0900 (Mon, 09 May 2016)

  New Revision: 54963

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54963

  Log:
    random.c: consitify
    
    * random.c (init_by_array): consitify initializing keys.

  Modified files:
    trunk/random.c
Index: random.c
===================================================================
--- random.c	(revision 54962)
+++ random.c	(revision 54963)
@@ -135,7 +135,7 @@ init_genrand(struct MT *mt, unsigned int https://github.com/ruby/ruby/blob/trunk/random.c#L135
 /* key_length is its length */
 /* slight change for C++, 2004/2/26 */
 static void
-init_by_array(struct MT *mt, uint32_t init_key[], int key_length)
+init_by_array(struct MT *mt, const uint32_t init_key[], int key_length)
 {
     int i, j, k;
     init_genrand(mt, 19650218U);

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

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